setasign\SetaPDF2\Core\Font\TrueType\Table

Name A class representing the Naming Table (name) in a TrueType file.

File: /SetaPDF v2/Core/Font/TrueType/Table/Name.php
Old class name (alias): \SetaPDF_Core_Font_TrueType_Table_Name

Class hierarchy

Summary

Constants

COMPATIBLE_FULL

public const Name::COMPATIBLE_FULL = 18

COPYRIGHT

public const int Name::COPYRIGHT = 0

Name IDs

DARK_BACKGROUND_PALETTE

public const Name::DARK_BACKGROUND_PALETTE = 24

DESCRIPTION

public const Name::DESCRIPTION = 10

DESIGNER

public const Name::DESIGNER = 9

DESIGNER_URL

public const Name::DESIGNER_URL = 12

FAMILY_NAME

public const Name::FAMILY_NAME = 1

FULL_FONT_NAME

public const Name::FULL_FONT_NAME = 4

LICENSE_DESCRIPTION

public const Name::LICENSE_DESCRIPTION = 13

LICENSE_INFO_URL

public const Name::LICENSE_INFO_URL = 14

LIGHT_BACKGROUND_PALETTE

public const Name::LIGHT_BACKGROUND_PALETTE = 23

MANUFACTURER_NAME

public const Name::MANUFACTURER_NAME = 8

POSTSCRIPT_NAME

public const Name::POSTSCRIPT_NAME = 6

POST_SCRIPT_CID_FINDFONT_NAME

SAMPLE_TEXT

public const Name::SAMPLE_TEXT = 19

SUBFAMILY_NAME

public const Name::SUBFAMILY_NAME = 2

TAG

public const string Name::TAG = 'name'

The tag name of this class

TRADEMARK

public const Name::TRADEMARK = 7

TYPOGRAPHIC_FAMILY_NAME

public const Name::TYPOGRAPHIC_FAMILY_NAME = 16

TYPOGRAPHIC_SUBFAMILY_NAME

public const Name::TYPOGRAPHIC_SUBFAMILY_NAME = 17

UID

public const Name::UID = 3

VARIATIONS_POST_SCRIPT_NAME_PREFIX

VENDOR_URL

public const Name::VENDOR_URL = 11

VERSION

public const Name::VERSION = 5

WWS_FAMILY_NAME

public const Name::WWS_FAMILY_NAME = 21

WWS_SUBFAMILY_NAME

public const Name::WWS_SUBFAMILY_NAME = 22

Properties

$_data

protected array AbstractTable::$_data = array()

Data of the table

$_entries

protected array Name::$_entries = array(...)

The table entries

$_rawData

protected array AbstractTable::$_rawData = array()

Raw binary data read from the file

$_record

$_records

protected array Name::$_records = array()

The name records

$_recordsRead

protected bool Name::$_recordsRead = false

Flag specifying if the records are read or not.


Static Methods

getClassName()

public static AbstractTable::getClassName (
string $tag
): string

Get a class name for a specific table by its tag name.

Parameters
$tag : string
 

Methods

__construct()

_get()

protected AbstractTable::_get (
string $name
): mixed

Get a value from the table.

The properties are defined in the $_entries property of an implemented table.

Parameters
$name : string
 

_getRaw()

protected AbstractTable::_getRaw (
string $name
): mixed

Get raw data from a specific table.

The properties are defined in the $_entries property of an implemented table.

Parameters
$name : string
 

_readRecords()

protected Name::_readRecords (
void
): void

Ensure that all records are read.

cleanUp()

public AbstractTable::cleanUp (
void
): void

Release memory.

getAllNames()

public Name::getAllNames (
void
): array

Get all defined names.

Return Values

A multi-dimensional array with the format $result[$platformId][$encodingId][$languageId][$nameId].

getCount()

public Name::getCount (
void
): int

Get the number of name records.

getEntry()

public AbstractTable::getEntry (
$name
): void
Parameters
$name
 

getFormat()

public Name::getFormat (
void
): int

Get the format.

getName()

public Name::getName (
int $platformId,
int $encodingId,
int $languageId,
int $nameId
): bool|string

Get a name.

Parameters
$platformId : int
 
$encodingId : int
 
$languageId : int
 
$nameId : int
 

getRecord()

Get the record object.

getStringOffset()

public Name::getStringOffset (
void
): int

Get the offset to start of string storage (from start of table).

hasName()

public Name::hasName (
int $platformId,
int $encodingId,
int $languageId,
int $nameId
): bool

Checks whether a name exists.

Parameters
$platformId : int
 
$encodingId : int
 
$languageId : int
 
$nameId : int