FL.objects.NameRecord.NameRecord

class FL.objects.NameRecord.NameRecord(name_record_or_s_or_tup_or_nid: NameRecord | str | tuple[int, int, int, int, str] | int | None = None, pid: int | None = None, eid: int | None = None, lid: int | None = None, s: str | None = None)

Bases: Copyable

NameRecord - class to represent OpenType name table record

Unicode-encoding syntax (‘/XX’ - for Mac name records and ‘/XXXX’ - for Windows and Unicode name records) must be used to assign characters with codes above 127. Refer to OpenType specification for information about constants used for platform, encoding, language and name IDs. For newline, Use /000D/000A in Win records and /0D in Mac records.

__init__(name_record_or_s_or_tup_or_nid: NameRecord | str | tuple[int, int, int, int, str] | int | None = None, pid: int | None = None, eid: int | None = None, lid: int | None = None, s: str | None = None) None

Methods

__init__([name_record_or_s_or_tup_or_nid, ...])

fake_serialize()

Attributes

eid

encoding identifier

lid

language identifier

name

name value

nid

name identifier

parent

pid

platform identifier

property eid: int

encoding identifier

Returns:

_description_

Return type:

int

property lid: int

language identifier

Returns:

_description_

Return type:

int

property name: str

name value

Returns:

_description_

Return type:

str

property nid: int

name identifier

Returns:

_description_

Return type:

int

property pid: int

platform identifier

Returns:

_description_

Return type:

int