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

File: /SetaPDF/Core/Font/TrueType/Table/Name.php

Class hierarchy

Summary

Constants

COMPATIBLE_FULL

COPYRIGHT

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

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

Data of the table

$_entries

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

The table entries

$_rawData

Raw binary data read from the file

$_records

The name records

$_recordsRead

Flag specifying if the records are read or not.


Static Methods

getClassName()

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

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

Parameters
$tag : $tag
 

Methods

_get()

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

Get a value from the table.

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

Parameters
$name : $name
 

_getRaw()

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

Get raw data from a specific table.

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

Parameters
$name : $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 bool SetaPDF_Core_Font_TrueType_Table_Name::getName ( integer $platformId, integer $encodingId, integer $languageId, integer $nameId )

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 bool SetaPDF_Core_Font_TrueType_Table_Name::hasName ( integer $platformId, integer $encodingId, integer $languageId, integer $nameId )

Checks wheter a name exists.

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