Android Question Custom font shows as "square"

Discussion in 'Android Questions' started by jotaele, Jun 12, 2015.

  1. jotaele

    jotaele Member Licensed User

    Hi all:

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

    Code:
    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
     
  2. Peter Simpson

    Peter Simpson Well-Known Member Licensed User

  3. jotaele

    jotaele Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

Loading...