setasign\SetaPDF2\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
Old class name (alias): \SetaPDF_Core_Font_TrueType_Table_Post

Class hierarchy

Summary

Constants

TAG

public const string Post::TAG = 'post'

The tag name of this class


Properties

$_data

protected array AbstractTable::$_data = array()

Data of the table

$_entries

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

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

$_rawData

protected array AbstractTable::$_rawData = array()

Raw binary data read from the file

$_record


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
 

cleanUp()

public AbstractTable::cleanUp (
void
): void

Release memory.

getEntry()

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

getItalicAngle()

public Post::getItalicAngle (
bool $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 : bool
 

getMaxMemType1()

public Post::getMaxMemType1 (
void
): int

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

getMaxMemType42()

public Post::getMaxMemType42 (
void
): int

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

getMinMemType1()

public Post::getMinMemType1 (
void
): int

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

getMinMemType42()

public Post::getMinMemType42 (
void
): int

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

getRecord()

Get the record object.

getUnderlinePosition()

public Post::getUnderlinePosition (
void
): int

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

getUnderlineThickness()

public Post::getUnderlineThickness (
void
): int

Get the suggested values for the underline thickness.

getVersion()

public Post::getVersion (
void
): float

Get the version.

isFixedPitch()

public Post::isFixedPitch (
void
): int

Checks whether the font is proportionally or not proportionally spaced.

Return Values

0 = proportionally, non-zeor = not proportionally