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_NONE
  • FT_ENCODING_UNICODE
  • FT_ENCODING_MS_SYMBOL
  • FT_ENCODING_SJIS
  • FT_ENCODING_GB2312
  • FT_ENCODING_BIG5
  • FT_ENCODING_WANSUNG
  • FT_ENCODING_JOHAB
  • FT_ENCODING_ADOBE_LATIN_1
  • FT_ENCODING_ADOBE_STANDARD
  • FT_ENCODING_ADOBE_EXPERT
  • FT_ENCODING_ADOBE_CUSTOM
  • FT_ENCODING_APPLE_ROMAN
  • FT_ENCODING_OLD_LATIN_2
  • FT_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. β›”

🧚 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