Font::...medInfo(3pm)

πŸ’– Font::FreeType::NamedInfo πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation page whose header is doing a whole Font::...medInfo(3pm) abbreviation moment. The actual module is Font::FreeType::NamedInfo, and it's all about the info hiding in the 'names table' in a font file. no cap, let's get into it. ✨


🌸 NAME 🌸

Font::FreeType::NamedInfo β€” information from 'names table' in font file πŸŽ€


✨ SYNOPSIS ✨

use Font::FreeType;

my $freetype = Font::FreeType->new;
my $face = $freetype->face('Vera.ttf');
my $infos = $face->namedinfos;
if($infos && @$infos) {
  say $_->string for(@$infos);
}

πŸ’… DESCRIPTION πŸ’…

okay so the TrueType and OpenType specifications literally allow the inclusion of a special names table in font files. This table contains textual (and internationalized) information regarding the font, like family name, copyright, version, etc. iconic behavior, honestly. πŸ’–

Possible values for platform_id, encoding_id, language_id, and name_id are given in the file ttnameid.h from FreeType distribution. For details please refer to the TrueType or OpenType specification. πŸ¦‹


πŸŽ€ METHODS πŸŽ€

bestie, these are the methods:

  • platform_id
  • encoding_id
  • language_id
  • name_id
  • string β€” The name string. Note that its format differs depending on the (platform, encoding) pair. It can be a Pascal String, a UTF-16 one, etc.

Generally speaking, the string is not zero-terminated. Please refer to the TrueType specification for details. πŸ’€


no invented lore here, bestie β€” every flag, name, file, and caveat from the original is present and accounted for. 🫢

xoxo, your Unix bestie πŸ’… β€” this page is perl v5.42.3, dated 2026-08-19, and the footer is still serving Font::...medInfo(3pm). periodt. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from