[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetype
Subject:    Re: [ft] charmap
From:       chris () gcjd ! de-web ! ws (Christian Demmer)
Date:       2006-11-01 17:12:11
Message-ID: 20061101181211.5CD5D0%0A2404C3 () gcjd ! de-web ! ws
[Download RAW message or body]

Martin Olbrich wrote:
>I am using the Arial.ttf and cant get the right character mapping for 
>special german characters "äöüß" although my charmap is unicode.
>Can it have to do with the character values of those being negative?

Positive:

  FT_EXPORT( FT_UInt )
  FT_Get_Char_Index( FT_Face   face,
                     FT_ULong  charcode );

So, if you pass a small negative value to unsigned long charcode, you
will get a problem, that means a really big number.

I don't know what is best practice in C, declare text unsigned char * or
tell the compiler chars are unsigned or insert a type cast.

Hope that helps,

Christian



_______________________________________________
Freetype mailing list
Freetype@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic