Android Question Custom font shows as "square"

jotaele

Member
Licensed User
Longtime User
Hi all:

I am trying to use a custom font with an EditText:

B4X:
Dim EditTextPruebas As EditText
Dim BotonPruebas As Button
Dim Fuente As Typeface

Sub BotonPruebas_Click

   EditTextPruebas.Text = ""
   EditTextPruebas.TextSize = 30

   Fuente = Typeface.LoadFromAssets("EmojiSymbols-Regular.ttf")
   EditTextPruebas.Typeface = Fuente
 
   EditTextPruebas.Text = EditTextPruebas.Text & Chr(Bit.ParseInt("1F45C", 16))


End Sub

It shows an "square", typical when the letter is not available.

With some hex values works, but with another ones fails.

I tried with a different fonts and with the icons that I need, always happens the same.

Any help will be apreciated.

Thanks
 
Top