NamedInfo

[Raku PDF Project] / [Font-FreeType Module] / Font::FreeType :: NamedInfo

class Font::FreeType::NamedInfo

Information from 'names table' in font file

Synopsis

use Font::FreeType;

my Font::FreeType $freetype .= new;
my $face = $freetype.face('Vera.ttf');
my $infos = $face.named-infos;
if $infos {
  say .Str for @$infos;
}

Description

The TrueType and OpenType specifications 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.

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

platform-id

encoding-id

language-id

name-id

Str

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.

Authors

Geoff Richards [email protected]

David Warring [email protected] (Raku Port)

Copyright

Copyright 2004, Geoff Richards.

Ported from Perl to Raku by David Warring [email protected]

Font::FreeType v0.4.0

read font files and render glyphs from Raku using FreeType2

Authors

  • David Warring

License

Artistic-2.0

Dependencies

Method::Also

Test Dependencies

Provides

  • Font::FreeType
  • Font::FreeType::BBox
  • Font::FreeType::BitMap
  • Font::FreeType::CharMap
  • Font::FreeType::Error
  • Font::FreeType::Face
  • Font::FreeType::Glyph
  • Font::FreeType::GlyphImage
  • Font::FreeType::NamedInfo
  • Font::FreeType::Native
  • Font::FreeType::Native::Defs
  • Font::FreeType::Outline
  • Font::FreeType::Raw
  • Font::FreeType::Raw::Defs
  • Font::FreeType::Raw::TT_Sfnt

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.