SetaPDF_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

Class hierarchy

Summary

Constants

COMPATIBLE_FULL

const SetaPDF_Core_Font_TrueType_Table_Name::COMPATIBLE_FULL = 18

COPYRIGHT

const integer SetaPDF_Core_Font_TrueType_Table_Name::COPYRIGHT = 0

Name IDs

DARK_BACKGROUND_PALETTE

const SetaPDF_Core_Font_TrueType_Table_Name::DARK_BACKGROUND_PALETTE = 24

DESCRIPTION

const SetaPDF_Core_Font_TrueType_Table_Name::DESCRIPTION = 10

DESIGNER

const SetaPDF_Core_Font_TrueType_Table_Name::DESIGNER = 9

DESIGNER_URL

const SetaPDF_Core_Font_TrueType_Table_Name::DESIGNER_URL = 12

FAMILY_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::FAMILY_NAME = 1

FULL_FONT_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::FULL_FONT_NAME = 4

LICENSE_DESCRIPTION

const SetaPDF_Core_Font_TrueType_Table_Name::LICENSE_DESCRIPTION = 13

LICENSE_INFO_URL

const SetaPDF_Core_Font_TrueType_Table_Name::LICENSE_INFO_URL = 14

LIGHT_BACKGROUND_PALETTE

const SetaPDF_Core_Font_TrueType_Table_Name::LIGHT_BACKGROUND_PALETTE = 23

MANUFACTURER_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::MANUFACTURER_NAME = 8

POSTSCRIPT_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::POSTSCRIPT_NAME = 6

POST_SCRIPT_CID_FINDFONT_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::POST_SCRIPT_CID_FINDFONT_NAME = 20

SAMPLE_TEXT

const SetaPDF_Core_Font_TrueType_Table_Name::SAMPLE_TEXT = 19

SUBFAMILY_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::SUBFAMILY_NAME = 2

TAG

const string SetaPDF_Core_Font_TrueType_Table_Name::TAG = 'name'

The tag name of this class

TRADEMARK

const SetaPDF_Core_Font_TrueType_Table_Name::TRADEMARK = 7

TYPOGRAPHIC_FAMILY_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::TYPOGRAPHIC_FAMILY_NAME = 16

TYPOGRAPHIC_SUBFAMILY_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::TYPOGRAPHIC_SUBFAMILY_NAME = 17

UID

const SetaPDF_Core_Font_TrueType_Table_Name::UID = 3

VARIATIONS_POST_SCRIPT_NAME_PREFIX

const SetaPDF_Core_Font_TrueType_Table_Name::VARIATIONS_POST_SCRIPT_NAME_PREFIX = 25

VENDOR_URL

const SetaPDF_Core_Font_TrueType_Table_Name::VENDOR_URL = 11

VERSION

const SetaPDF_Core_Font_TrueType_Table_Name::VERSION = 5

WWS_FAMILY_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::WWS_FAMILY_NAME = 21

WWS_SUBFAMILY_NAME

const SetaPDF_Core_Font_TrueType_Table_Name::WWS_SUBFAMILY_NAME = 22


Properties

$_data

protected array SetaPDF_Core_Font_TrueType_Table_Name::$_data = array()

Data of the table

$_entries

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

The table entries

$_rawData

protected array SetaPDF_Core_Font_TrueType_Table_Name::$_rawData = array()

Raw binary data read from the file

$_record

protected SetaPDF_Core_Font_TrueType_Table_Record SetaPDF_Core_Font_TrueType_Table_Name::$_record

The main table record.

$_records

protected array SetaPDF_Core_Font_TrueType_Table_Name::$_records = array()

The name records

$_recordsRead

protected bool SetaPDF_Core_Font_TrueType_Table_Name::$_recordsRead = false

Flag specifying if the records are read or not.


Static Methods

getClassName()

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

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

Parameters
$tag
 

Methods

_get()

protected SetaPDF_Core_Font_TrueType_Table::_get (
$name
): integer|float|mixed|null

Get a value from the table.

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

Parameters
$name
 

_getRaw()

protected SetaPDF_Core_Font_TrueType_Table::_getRaw (
$name
): mixed|null

Get raw data from a specific table.

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

Parameters
$name
 

_readRecords()

Ensure that all records are read.

cleanUp()

Release memory.

getAllNames()

Get all defined names.

Return Values

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

getCount()

Get the number of name records.

getFormat()

Get the format.

getName()

public SetaPDF_Core_Font_TrueType_Table_Name::getName (
integer $platformId, integer $encodingId, integer $languageId, integer $nameId
): bool

Get a name.

Parameters
$platformId : integer
 
$encodingId : integer
 
$languageId : integer
 
$nameId : integer
 

getRecord()

getStringOffset()

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

hasName()

public SetaPDF_Core_Font_TrueType_Table_Name::hasName (
integer $platformId, integer $encodingId, integer $languageId, integer $nameId
): bool

Checks wheter a name exists.

Parameters
$platformId : integer
 
$encodingId : integer
 
$languageId : integer
 
$nameId : integer