How to change the font of the B4XFloatText field to a custom font loaded from the dirassets folder and created using xui createfont?
Using the sample code below but no font change ... also not with a textfield as B4XView.
Also tried with CSSUtil -font-family = same result.
Note: Labels defined as B4XView are OK.
Test project attached.
Using the sample code below but no font change ... also not with a textfield as B4XView.
Also tried with CSSUtil -font-family = same result.
Note: Labels defined as B4XView are OK.
B4X:
Private DigitalFont As B4XFont
Private DigitalFontTTF As String = "digi.ttf"
DigitalFont = xui.CreateFont(fx.LoadFont(File.DirAssets, DigitalFontTTF, 24), 24)
Label1.Font = DigitalFont
B4XFloatTextField1.TextField.Font = DigitalFont
B4XFloatTextField1.Update
Test project attached.