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

jinyistudio

Well-Known Member
Licensed User
Longtime User

Attachments

  • font1.png
    font1.png
    10.7 KB · Views: 180

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 ? o_O
 
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
    p1.jpg
    21.3 KB · Views: 156
Upvote 0
Top