[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] German Letters with FT_Load_Char
From: |
Adam Twardoch |
Subject: |
Re: [ft] German Letters with FT_Load_Char |
Date: |
Tue, 31 Mar 2009 17:45:36 +0200 |
User-agent: |
Thunderbird 2.0.0.21 (Macintosh/20090302) |
Mickey Gabel wrote:
>> Is the FreeType API designed to work with UTF-32 directly? If not, how
>> does one render non-BMP Unicode character codes? Through UTF-16
>> surrogate pairs?
>
> AFAIK there are no surrogate pairs in UTF-32, because none are needed.
> Unicode code points (20bit) are directly encoded in UTF-32, since there
> is enough space, meaning that non-BMP characters can be directly encoded.
Yes, of course. If the FreeType API were based on UTF-16 (like the
"wide" variant of the Windows API, for example), then non-BMP characters
would need to be accessed through surrogate pairs. But since the
FreeType API is based on UTF-32 (I am glad it is), non-BMP characters
can be accessed directly. That's good news.
A.
--
Adam Twardoch
| Language Typography Unicode Fonts OpenType
| twardoch.com | silesian.com | fontlab.net
The illegal we do immediately.
The unconstitutional takes a little longer.
(Henry Kissinger)
- [ft] German Letters with FT_Load_Char, loki84, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char, Werner LEMBERG, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char, Adam Twardoch, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char, Werner LEMBERG, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char, Adam Twardoch, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char, Werner LEMBERG, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char, Adam Twardoch, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char, Werner LEMBERG, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char, Mickey Gabel, 2009/03/31
- Re: [ft] German Letters with FT_Load_Char,
Adam Twardoch <=