class HexaPDF::Font::TrueType::Table::Name::Record

Parent

Contains the information for a Name Record.

The string value is converted to UTF-8 if possible, otherwise it stays in BINARY.

Constants

PLATFORM_MACINTOSH

QuickDraw Script Manager code for Macintosh.

PLATFORM_MICROSOFT

Microsoft encoding.

PLATFORM_UNICODE

Indicates Unicode version.

Attributes

encoding_id[R]

The platform specific encoding identified.

language_id[R]

The language identified.

platform_id[R]

The platform identifier code.

Public Class Methods

new(text, pid, eid, lid)

Create a new name record.

Calls superclass method

Public Instance Methods

platform?(identifier)

Returns true if this record has the given platform identifier which can either be :unicode, :macintosh or :microsoft.

preferred?()

Returns true if this record is a “preferred” one.

The label “preferred” is set on a name if it represents the US English version of the name in a decodable encoding: