Hi, I need to use icons on some labels. I downloaded the fontawesome Ttf and copied it as an additional file in the project, then I wrote the following code to use the icon but a part of the word is also converted into an icon, why?
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
Dim myfont As Typeface = Typeface.LoadFromAssets("fontawesome5.ttf")
Label1.Typeface = myfont
Label1.Text = Chr(0xf4d3) & " SOSPENDI"
End Sub
Activity.LoadLayout("Layout")
Dim myfont As Typeface = Typeface.LoadFromAssets("fontawesome5.ttf")
Label1.Typeface = myfont
Dim cs As CSBuilder
cs.Initialize
cs.Initialize.color(Colors.Blue).Size(28).Typeface(myfont).Append(Chr(0xf4d3)).Size(22).Append(" SOSPENDI").PopAll
Label1.Text=cs