Font::FreeType::CharMap - character map from font typefaces loaded from Font::FreeType
use Font::FreeType; my $freetype = Font::FreeType->new; my $face = $freetype->face('Vera.ttf'); my $charmap = $face->charmap; say $charmap->platform_id; say $charmap->encoding_id; say $charmap->encoding;
A charmap is used to translate character codes in a given encoding into glyph indexes for its parent's face. Some font formats may provide several charmaps per font.
The following encoding constants are exported by default by Font::FreeType. See freetype documenation
Same as FT_ENCODING_SJIS. Deprecated.
Same as FT_ENCODING_GB2312. Deprecated.
Same as FT_ENCODING_BIG5. Deprecated.
Same as FT_ENCODING_WANSUNG. Deprecated.
Same as FT_ENCODING_JOHAB. Deprecated.
An ID number describing the platform for the following encoding ID. This comes directly from the TrueType specification and should be emulated for other formats.
For details please refer to the TrueType or OpenType specification.
A platform specific encoding number. This also comes from the TrueType specification and should be emulated similarly.
An FreeType Encoding tag (constant) identifying the charmap.
To install Font::FreeType, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Font::FreeType
CPAN shell
perl -MCPAN -e shell install Font::FreeType
For more information on module installation, please visit the detailed CPAN module installation guide.