logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Font::FreeType::CharMap - character map from font typefaces loaded from Font::FreeType

Constants

       The following encoding constants are exported by default by Font::FreeType.  See freetype documentation
       <http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Encoding>

   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 as FT_ENCODING_SJIS. Deprecated.

   FT_ENCODING_MS_GB2312
       Same as FT_ENCODING_GB2312. Deprecated.

   FT_ENCODING_MS_BIG5
       Same as FT_ENCODING_BIG5. Deprecated.

   FT_ENCODING_MS_WANSUNG
       Same as FT_ENCODING_WANSUNG. Deprecated.

   FT_ENCODING_MS_JOHAB
       Same as FT_ENCODING_JOHAB. Deprecated.

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.

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
           An FreeType Encoding tag (constant) identifying the charmap.

perl v5.40.0                                       2024-10-20                       Font::FreeType::CharMap(3pm)

Name

       Font::FreeType::CharMap - character map from font typefaces loaded from Font::FreeType

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;

See Also