I wanted to use FontAwesome like this..You are looking for the Font object.
B4X:lbl.Font = Font.DEFAULT_BOLD
'Initialize the Typeface.
Dim myFont AsTypeface
myFont = Typeface.LoadFromAssets("fontawesome.otf")
'Add the FontAwesome typeface to your view.
Label1.Typeface = myFont
'Select the icon you want to display
Label1.Text = Chr(61481)
I couldnt exactly understand what you are asking after Erel's response but first you have to putI wanted to use FontAwesome like this..
B4X:'Initialize the Typeface. Dim myFont AsTypeface myFont = Typeface.LoadFromAssets("fontawesome.otf") 'Add the FontAwesome typeface to your view. Label1.Typeface = myFont 'Select the icon you want to display Label1.Text = Chr(61481)
Is this possible with B4i to do something like that?
#AppFont: ethnocentricrg.ttf
lblilkekran.Font = Font.CreateNew2("EthnocentricRg-Regular", 20)
You are looking for the Font object.
B4X:lbl.Font = Font.DEFAULT_BOLD