Font::...CharMap(3pm)
πΈ NAME πΈ
okay bestie, welcome to the Font::...CharMap(3pm) page β aka Font::FreeType::CharMap, the character map situation from font typefaces loaded from Font::FreeType, brought to you by the User Contributed Perl Documentation. π
β¨ SYNOPSIS β¨
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;
π DESCRIPTION π
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. no cap, that's literally the whole vibe. π¦
π CONSTANTS π
The following encoding constants are exported by default by Font::FreeType. See the freetype documentation at http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Encoding for the full details. β¨
FT_ENCODING_NONEFT_ENCODING_UNICODEFT_ENCODING_MS_SYMBOLFT_ENCODING_SJISFT_ENCODING_GB2312FT_ENCODING_BIG5FT_ENCODING_WANSUNGFT_ENCODING_JOHABFT_ENCODING_ADOBE_LATIN_1FT_ENCODING_ADOBE_STANDARDFT_ENCODING_ADOBE_EXPERTFT_ENCODING_ADOBE_CUSTOMFT_ENCODING_APPLE_ROMANFT_ENCODING_OLD_LATIN_2FT_ENCODING_MS_SJISβ same asFT_ENCODING_SJIS. Deprecated. βFT_ENCODING_MS_GB2312β same asFT_ENCODING_GB2312. Deprecated. βFT_ENCODING_MS_BIG5β same asFT_ENCODING_BIG5. Deprecated. βFT_ENCODING_MS_WANSUNGβ same asFT_ENCODING_WANSUNG. Deprecated. βFT_ENCODING_MS_JOHABβ same asFT_ENCODING_JOHAB. Deprecated. β
π§ METHODS π§
platform_id
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.
encoding_id
A platform specific encoding number. This also comes from the TrueType specification and should be emulated similarly.
For details please refer to the TrueType or OpenType specification.
encoding
A FreeType Encoding tag (constant) identifying the charmap. π·οΈ
mwah π β this cutie is from perl v5.42.3, dated 2026-08-19, and it's part of the User Contributed Perl Documentation. byeee bestie! π«Άπ
π¦ where this page comes from
- ubuntu stonking: libfont-freetype-perl 0.16-3build5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms