b4a supports spanish text (ñ, ¿...)?

Bernie

Member
Licensed User
Longtime User
Hello:

I am programming a helper for dyslexic people, but letter (ñ) and some symbols (¿,¡) don't work. b4a support Spanish text (drawtext function specifically)? If yes, how?

Thank you very much!!

Bernardo
 

agraham

Expert
Licensed User
Longtime User
In what way does it "not work"? Please be more precise.

All characters in Android, and hence B4A, are 16bit Unicode. If the characters cannot be displayed it might be that the specified font does not include those glyphs. My Xoom has no trouble.

B4X:
Dim C As Canvas
C.Initialize(ImageView1)
C.DrawColor(Colors.White)
C.DrawText("(ñ) (¿,¡) ", 0, 30, Typeface.DEFAULT,32, Colors.Blue, "LEFT") 
ImageView1.Invalidate
Looks like the CODE tags don't like the Spanish characters - the actual DrawText line is

C.DrawText("(ñ) (¿,¡) ", 0, 30, Typeface.DEFAULT,32, Colors.Blue, "LEFT")
 

Attachments

  • s1.png
    5.7 KB · Views: 162
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…