SetaPDF_Core_Font_TrueType_Table_Post A class representing the PostScript Table (post) in a TrueType file.

File: /SetaPDF v2/Core/Font/TrueType/Table/Post.php

Class hierarchy

Summary

Constants

TAG

public const string SetaPDF_Core_Font_TrueType_Table_Post::TAG = 'post'

The tag name of this class


Properties

$_data

protected array SetaPDF_Core_Font_TrueType_Table::$_data = array()

Data of the table

$_entries

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

We only implement getters for default entries (for all versions, explicitly 1.0 and 3.0).

$_rawData

protected array SetaPDF_Core_Font_TrueType_Table::$_rawData = array()

Raw binary data read from the file


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
 

cleanUp()

Release memory.

getEntry()

Parameters
$name
 

getItalicAngle()

public SetaPDF_Core_Font_TrueType_Table_Post::getItalicAngle (
[ boolean $round = true ]
): float|mixed|null

Get the italic angle.

Italic angle in counter-clockwise degrees from the vertical. Zero for upright text, negative for text that leans to the right (forward).

Parameters
$round : boolean
 

getMaxMemType1()

Get the maximum memory usage when an OpenType font is downloaded as a Type 1 font.

getMaxMemType42()

Get the maximum memory usage when an OpenType font is downloaded.

getMinMemType1()

Get the minimum memory usage when an OpenType font is downloaded as a Type 1 font.

getMinMemType42()

Get the minimum memory usage when an OpenType font is downloaded.

getRecord()

getUnderlinePosition()

Get the suggested distance of the top of the underline from the baseline.

getUnderlineThickness()

Get the suggested values for the underline thickness.

getVersion()

Get the version.

isFixedPitch()

Checks whether the font is proportionally or not proportionally spaced.

Return Values

0 = proportionally, non-zeor = not proportionally