d3alek / Texample2

Rendering Text in OpenGL ES 2 on Android
Other
83 stars 33 forks source link

Font encodeing setting #6

Open kotrs opened 8 years ago

kotrs commented 8 years ago

Hi, is it possible to set up encoding for the international fonts ?

d3alek commented 8 years ago

What issues do you see with international fonts?

kotrs commented 8 years ago

I need Czech fonts with accents...so I modified the range of character_end to 253...so I got all chars, but the font uses 8859-2 and some chars are incorrect. I need to know, how can I change encoding...TypeFace, Paint and Canvas classes have no charset method.

d3alek commented 8 years ago

You are right - my suggestion would be to try using a different font than the provided Roboto-Regular.ttf and see if that works.

kotrs commented 8 years ago

I tried czech fonts, but Android environment encoding has set different encoding and some chars are displayed incorrectly.