B Bill Norris Active Member Licensed User Longtime User Jan 23, 2012 #1 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
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 Longtime User Jan 23, 2012 #2 Have you set the font for the button? B4X: MyFont = Typeface.LoadFromAssets("MyCustomFont.ttf") Button1.Typeface = MyFont Upvote 0
Have you set the font for the button? B4X: MyFont = Typeface.LoadFromAssets("MyCustomFont.ttf") Button1.Typeface = MyFont
B Bill Norris Active Member Licensed User Longtime User Jan 23, 2012 #3 Yes, i've done that, and it works fine with labels, but not the buttons. Upvote 0
NJDude Expert Licensed User Longtime User Jan 23, 2012 #4 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" Upvote 0
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"
B Bill Norris Active Member Licensed User Longtime User Jan 23, 2012 #5 No, I just set the text the designer. Lemme try setting in code. Upvote 0
Ricky D Well-Known Member Licensed User Longtime User Jan 24, 2012 #6 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 Upvote 0
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