class HexaPDF:: Font:: TrueType:: Table:: Name:: Record
Parent | String |
---|
Contains the information for a Name
Record
.
The string value is converted to UTF-8 if possible, otherwise it stays in BINARY.
Constants
Attributes
The platform specific encoding identified.
The language identified.
The platform identifier code.
Public Class Methods
Create a new name record.
Calls superclass method
Public Instance Methods
Returns true
if this record has the given platform identifier which can either be :unicode, :macintosh or :microsoft.
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:
-
platform_id
:macintosh,encoding_id
0 (Roman) andlanguage_id
0 (English); or -
platform_id
:microsoft,encoding_id
1 (Unicode) andlanguage_id
1033 (US English).