[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Question about charset.
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Question about charset. |
Date: |
Fri, 19 Apr 2013 06:30:55 +0200 (CEST) |
> I mean that it likes
>
> #define FT_WinFNT_ID_CP1252 0
> #define FT_WinFNT_ID_DEFAULT 1
> #define FT_WinFNT_ID_SYMBOL 2
> [...]
>
> defined in ftwinfnt.h, can these work for other type fonts, type1,
> CFF and so on.
No. In general, FreeType only handles encodings, not charsets.
Additionally, information on the character sets within a font is
*very* unreliable. For example, the Unicode block bits in the `OS/2'
table of TrueType fonts are set by font vendors rather arbitrarily.
They are just a possible iteration to the question: `Is this font
suitable for displaying this range?', and there is absolutely no
guarantee that all characters of this block are really available in
the font.
Werner