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 ")?
> 
> 
> 
> 
> 
> 


_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to