B4J Question How to add new ttf font into internal designer ?

jinyistudio

Well-Known Member
Licensed User
Longtime User
Adding fonts with the designer is only supported in B4A. You should set the custom font programmatically.

Adding font files option shouldn't appear in B4J. It is fixed.
Could i set the custom font programmatically ? How ?
 
Upvote 0

jinyistudio

Well-Known Member
Licensed User
Longtime User
It is OK

B4X:
dsg7=fx.LoadFont(File.DirAssets,"dsg7.ttf",56)  

MainForm = Form1
MainForm.RootPane.LoadLayout("123") 'Load the layout file.
MainForm.Show
   
Label1.Font=dsg7
Label2.Font=dsg7
Label3.Font=dsg7
 

Attachments

  • p1.jpg
    21.3 KB · Views: 149
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…