Android Question [SOLVED] Is possible to use "Font Awesome" in a button?

Gary Milne

Active Member
Licensed User
Longtime User
You can use it in a label so you should be able to use it in anything that supports .Typeface, such as a button.

B4X:
    'Font Awesome Font
    Dim FontAwesome As Typeface
    FontAwesome = Typeface.LoadFromAssets("fontawesome-webfont.ttf")
    lblVersion.Typeface = FontAwesome

    'This works
    lblVersion.Text = Chr(0xf061)
    lblVersion.TextSize = 24
    lblVersion.TextColor = Colors.Yellow
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…