Custom Font on Button

Bill Norris

Active Member
Licensed User
Am using custom font in my app. The font displays correctly on labels, but when I apply it to a button, the text does not show on the button, just an empty button. Ideas?

Thanks, Bill
 

NJDude

Expert
Licensed User
Have you set the font for the button?

B4X:
MyFont = Typeface.LoadFromAssets("MyCustomFont.ttf")
   
Button1.Typeface = MyFont
 

NJDude

Expert
Licensed User
Can you post your code so we can take a look?.

This is probably silly to ask but, have you set a "text" for the button? like:

B4X:
PlayButton.Text = "Hello"
 

Ricky D

Well-Known Member
Licensed User
have u tried

have you tried testing one of the predefined fonts to see if it's all fonts or something about the custom one?

regards, Ricky
 
Top