[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] how to know if a font file contains a unicode character font?
From: |
suzuki toshiya |
Subject: |
Re: [ft] how to know if a font file contains a unicode character font? |
Date: |
Thu, 19 Apr 2012 15:40:10 +0900 |
User-agent: |
Mozilla-Thunderbird 2.0.0.12 (X11/20080406) |
Hi,
Q1) The answer is dependent with how you define "language".
OpenType spec distinguish the script and language, I think
it's useful for you to clarify what you want to do, please
check.
Q2) In FT2 level, FT_Get_Char_Index() would be what you
can try, but, it does not guarantee that the glyph drawn
for given UTF32 codepoint is "a graphic that are differently
designed for each codepoint". I think using fontconfig is
easier solution, if you're working with Unix like systems.
Regards,
mpsuzuki
宋江山 wrote:
> I would like to use differrent fonts, so that I can render many
> languages, like english, chinese, portuguese, etc.
> I have two questions.
> 1. where can I get a font file with certain language?
>
> 2. once i get a UTF32 charcter, how to know which ttf file I should use?
> is there a UTF32 charcter range in a font ttf file?
> Something like sample.ttf, have UTF32 character 0x20 --->0x7f font?
> If any, how can I get the range(eg: "UTF32 0x20 --->0x7f ")?
>
>
>
>
>
>