Problem with SDL_ttf and some unciode characters

Hi !
It seems that SDL_ttf have some problems to draw some unicode characters with
some truetype font.
For exemple, I ask to showfont (provided with SDL_ttf sources) to draw those
UTF8 characters :
a???
This is 4 characters. There unicode numbers are : 0x61 - 0xe9 - 0x160 - 0x44F
With ‘Arial.ttf’ it works perfectly, but with the famous “Vera.ttf” (Bitstream
Vera Sans) the last character is not drawn : there is a square instead.
I am sure that Vera.ttf has this character (I can use it with kword).

I use SDL-1.2.8, SDL_ttf-2.0.7, freetype-2.1.9 and xorg-x11-6.8.2 under Gentoo
linux.

Is it a known bug ? If not, can you reproduce it ?

Cedric.

Hello,

It seems that SDL_ttf have some problems to draw some unicode characters with
some truetype font.
For exemple, I ask to showfont (provided with SDL_ttf sources) to draw those
UTF8 characters :
a??? ??
This is 4 characters. There unicode numbers are : 0x61 - 0xe9 - 0x160 - 0x44F
With ‘Arial.ttf’ it works perfectly, but with the famous “Vera.ttf” (Bitstream
Vera Sans) the last character is not drawn : there is a square instead.
I am sure that Vera.ttf has this character (I can use it with kword).

No, the original Bistream Vera does not include that character. Kword
probably substitutes a different font for Cyrillic characters.

For derivatives of Vera containing Cyrillic characters, try
http://kvota.net/fonts/ or (the larger) http://dejavu.sourceforge.net/

(Disclaimer: I have not tested these fonts, nor can I verify their
validity or legality… you should probably look into this yourself.)

Another solution is to open several fonts at once, covering all the code
points you wish to display.

Hope this helps,
Benjamin Deutsch

Le Lundi 14 F?vrier 2005 18:36, Benjamin Deutsch a ?crit :

Hello,

It seems that SDL_ttf have some problems to draw some unicode characters
with some truetype font.
For exemple, I ask to showfont (provided with SDL_ttf sources) to draw
those UTF8 characters :
a??? ??
This is 4 characters. There unicode numbers are : 0x61 - 0xe9 - 0x160 -
0x44F With ‘Arial.ttf’ it works perfectly, but with the famous “Vera.ttf”
(Bitstream Vera Sans) the last character is not drawn : there is a square
instead. I am sure that Vera.ttf has this character (I can use it with
kword).

No, the original Bistream Vera does not include that character. Kword
probably substitutes a different font for Cyrillic characters.

Indeed, with kfontview there is no cyrillic characters. But Kword, or Gimp
(among lots of other apps) shows these characters. The substituation must be
done by fontconfig.

For derivatives of Vera containing Cyrillic characters, try
http://kvota.net/fonts/ or (the larger) http://dejavu.sourceforge.net/

(Disclaimer: I have not tested these fonts, nor can I verify their
validity or legality… you should probably look into this yourself.)

Thank you for the links, and for your response. Now, I understand my problem !

Cedric.