[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [Devel] German umlauts with Freetype 2?
From: |
Patrick Hoffmann |
Subject: |
AW: [Devel] German umlauts with Freetype 2? |
Date: |
Thu, 26 Dec 2002 10:52:22 +0100 |
I've just made another test. I wrote a small program that puts out all
characters between 32 and 255. In the output I can see that '~' is the
last character in the font, that isn't a square. I'm using the standard
true type fron "arial.ttf" from windows.
Any ideas?
-----Ursprüngliche Nachricht-----
Von: address@hidden [mailto:address@hidden Im
Auftrag von Werner LEMBERG
Gesendet: Donnerstag, 26. Dezember 2002 04:32
An: address@hidden; address@hidden
Betreff: Re: [Devel] German umlauts with Freetype 2?
> But when I use german umlauts only a square is displayed instead of
> the right letter. So I may be right if I think this means, that I'm
> not using the correct character code. But which code should I use? Is
> there a possibility to change this behaviour with FT_Set_Charmap and
> FT_Encoding? Does somebody know a solution for this problem?
Normally, TrueType fonts contain a Unicode charmap, and for non-TrueType
fonts, FreeType synthesizes a Unicode charmap if possible. In Unicode,
the character range 0x00-0xFF is equivalent to Latin-1 (plus control
code range); this means that you have to use e.g. 0xDF as the input
character code for `ß'. If you use the latest CVS snapshot of Unicode,
a proper Unicode cmap should always be selected by default, but I
recommend to select it explicitly with FT_Set_Charmap.
Werner
_______________________________________________
Devel mailing list
address@hidden http://www.freetype.org/mailman/listinfo/devel