0

I just found that the following red marked unicodes can not be shown on Android EditText

Anyboday has met similar issue? And how can I resolve this issue?

Edit again: I attached another picture to shown the unicode and the corresponding result in Android

enter image description here

enter image description here

LiangWang
  • 8,038
  • 8
  • 41
  • 54

1 Answers1

3

If you find that you are trying to use characters that are not in the standard android font then you might consider using a custom font like DejaVuSans.ttf (I use this one for Maths symbols). You display the character by entering its unicode symbol in the format \u...

Start searching for ttf files ... I think it is likely that you will find one that contains the characters you require.

Be aware that this will probably increase the size of your app by 1MB (based on DejaVuSans.ttf).

Information on how to use a custom font can be found here (you don't have to use a sub directory but you should put the file under assets):

Android - Using Custom Font

Community
  • 1
  • 1
IanB
  • 3,489
  • 1
  • 20
  • 24