setasign\SetaPDF2\Core\Font\TrueType\Table

Os2 A class representing the OS/2 and Windows Metrics Table (OS/2) in a TrueType file.

File: /SetaPDF v2/Core/Font/TrueType/Table/Os2.php
Old class name (alias): \SetaPDF_Core_Font_TrueType_Table_Os2

Class hierarchy

Summary

Constants

TAG

public const string Os2::TAG = 'OS/2'

The tag name of this class


Properties

$_data

protected array AbstractTable::$_data = array()

Data of the table

$_entries

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

The entries in this table

$_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.

getAvgCharWidth()

public Os2::getAvgCharWidth (
void
): int

Get the average weighted escapement.

getBreakChar()

public Os2::getBreakChar (
void
): int

Get the break character.

getCapHeight()

public Os2::getCapHeight (
void
): int

Get the distance between the baseline and the approximate height of uppercase letters.

getCodePageRange1()

public Os2::getCodePageRange1 (
void
): int

Get Code Page Character Range 1.

getCodePageRange2()

public Os2::getCodePageRange2 (
void
): int

Get Code Page Character Range 2.

getDefaultChar()

public Os2::getDefaultChar (
void
): int

Get the default character code that should be used whenever a requested character is not in the font.

getEntry()

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

getFamilyClass()

public Os2::getFamilyClass (
void
): int[]

Get the font-family class and subclass.

getFirstCharIndex()

public Os2::getFirstCharIndex (
void
): int

Get the minimum Unicode index (character code) in this font.

getFsSelection()

public Os2::getFsSelection (
void
): int

Get font selection flags.

getFsType()

public Os2::getFsType (
void
): int

Get the type flags.

getLastCharIndex()

public Os2::getLastCharIndex (
void
): int

Get the maximum Unicode index (character code) in this font.

getLowerOpticalPointSize()

public Os2::getLowerOpticalPointSize (
void
): int

Get the lower value of the size range for which this font has been designed.

getMaxContext()

public Os2::getMaxContext (
void
): int

Get the maximum length of a target glyph context for any feature in this font.

getPanose()

public Os2::getPanose (
void
): string

Get the PANOSE classification number.

getRecord()

Get the record object.

getStrikeoutPosition()

public Os2::getStrikeoutPosition (
void
): int

Get the strikeout position.

getStrikeoutSize()

public Os2::getStrikeoutSize (
void
): int

Get the strikeout size.

getSubscriptXOffset()

public Os2::getSubscriptXOffset (
void
): int

Get the subscript x offset.

getSubscriptXSize()

public Os2::getSubscriptXSize (
void
): int

Get the subscript horizontal font size.

getSubscriptYOffset()

public Os2::getSubscriptYOffset (
void
): int

Get the subscript y offset.

getSubscriptYSize()

public Os2::getSubscriptYSize (
void
): int

Get the subscript vertical font size.

getSuperscriptXOffset()

public Os2::getSuperscriptXOffset (
void
): int

Get the superscript x offset.

getSuperscriptXSize()

public Os2::getSuperscriptXSize (
void
): int

Get the superscript horizontal font size.

getSuperscriptYOffset()

public Os2::getSuperscriptYOffset (
void
): int

Get the superscript y offset.

getSuperscriptYSize()

public Os2::getSuperscriptYSize (
void
): int

Get the superscript vertical font size.

getTypoAscender()

public Os2::getTypoAscender (
void
): int

Get the typographic ascender for this font.

getTypoDescender()

public Os2::getTypoDescender (
void
): int

Get the typographic descender for this font.

getTypoLineGap()

public Os2::getTypoLineGap (
void
): int

Get the typographic line gap for this font.

getUnicodeRange1()

public Os2::getUnicodeRange1 (
void
): int

Get Unicode Character Range 1.

getUnicodeRange2()

public Os2::getUnicodeRange2 (
void
): int

Get Unicode Character Range 2.

getUnicodeRange3()

public Os2::getUnicodeRange3 (
void
): int

Get Unicode Character Range 3.

getUnicodeRange4()

public Os2::getUnicodeRange4 (
void
): int

Get Unicode Character Range 4.

getUpperOpticalPointSize()

public Os2::getUpperOpticalPointSize (
void
): int

Get the upper value of the size range for which this font has been designed.

getVendorId()

public Os2::getVendorId (
void
): string

Get the Font Vendor Identification.

getVersion()

public Os2::getVersion (
void
): int

Get the OS/2 table version number.

getWeightClass()

public Os2::getWeightClass (
void
): int

Get the weight class.

getWidthClass()

public Os2::getWidthClass (
void
): int

Get the width class.

getWinAscent()

public Os2::getWinAscent (
void
): int

Get the ascender metric for Windows.

getWinDescent()

public Os2::getWinDescent (
void
): int

Get the descender metric for Windows.

getXHeight()

public Os2::getXHeight (
void
): int

Get the distance between the baseline and the approximate height of non-ascending lowercase letters.