Lucas Siqueira Active Member Licensed User Longtime User Sep 27, 2022 #1 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. 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
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. 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
Erel B4X founder Staff member Licensed User Longtime User Sep 28, 2022 #2 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) Upvote 0
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)
Lucas Siqueira Active Member Licensed User Longtime User Sep 28, 2022 #3 Erel said: 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) Click to expand... It worked Upvote 0
Erel said: 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) Click to expand... It worked