iOS Question HintFont in B4XFloatTextField in problem

Lucas Siqueira

Active Member
Licensed User
Longtime User
Even using the code to change the HintFont text font on IOS the font is still strange. (it looks like times new roman)

on android the font is applied correctly in the field B4XFloatTextField, but on IOS it doesn't work.

on the title label, it happens perfectly.




1664286298898.png


B4X:
    lb_titulo.Text = "TESTE"
    lb_titulo.Font = xui.CreateDefaultBoldFont(16)
    
    et_cpf_cnpj.HintText = "TESTE"
    et_cpf_cnpj.HintFont = xui.CreateDefaultBoldFont(16)
    et_cpf_cnpj.Update
 

Lucas Siqueira

Active Member
Licensed User
Longtime User
It is related to a change in iOS in the way it handles the default fonts. You should instead set the font explicitly:
B4X:
et_cpf_cnpj.HintFont = xui.CreateFont(Font.CreateNew2("Helvetica", 16), 16)
It worked
 
Upvote 0
Top