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

COPYRIGHT

Name IDs

DARK_BACKGROUND_PALETTE

DESCRIPTION

DESIGNER

DESIGNER_URL

FAMILY_NAME

FULL_FONT_NAME

LICENSE_DESCRIPTION

LICENSE_INFO_URL

LIGHT_BACKGROUND_PALETTE

MANUFACTURER_NAME

POSTSCRIPT_NAME

POST_SCRIPT_CID_FINDFONT_NAME

SAMPLE_TEXT

SUBFAMILY_NAME

TAG

public const string SetaPDF_Core_Font_TrueType_Table_Name::TAG = 'name'

The tag name of this class

TRADEMARK

TYPOGRAPHIC_FAMILY_NAME

TYPOGRAPHIC_SUBFAMILY_NAME

UID

VARIATIONS_POST_SCRIPT_NAME_PREFIX

VENDOR_URL

VERSION

WWS_FAMILY_NAME

WWS_SUBFAMILY_NAME


Properties

$_data

protected array SetaPDF_Core_Font_TrueType_Table::$_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::$_rawData = array()

Raw binary data read from the file

$_records

The name records

$_recordsRead

Flag specifying if the records are read or not.


Static Methods

getClassName()

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

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

Parameters
$tag : string
 

Methods

_get()

protected SetaPDF_Core_Font_TrueType_Table::_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 SetaPDF_Core_Font_TrueType_Table::_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()

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.

getEntry()

Parameters
$name
 

getFormat()

Get the format.

getName()

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

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 whether a name exists.

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