Place the .ttf file in the Assets (Files) folder.
If your project is a B4XPages project, add
it to the B4XMainPage module.
You must configure it similarly to use your custom fonts.
Custom Fonts B4XPages:
' B4XMainPage'
'
' Modify your B4XMainPage as shown in this example.
'
Private Sub B4XPage_created (Root1 As B4XView)
Root = Root1
Root.loadLayout(MainPage")
'
' Code to add
Dim BF As B4XFont
BF = xui.CreateFont(Typeface.LoadFromAssets("shabnam.ttf"), 38)
lbl1.TextColor = xui.Color_Red
lbl1.Font = BF
lbl1.Text = "My text"
End Sub