SetaPDF_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

Class hierarchy

Summary

Constants

TAG

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

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_Os2::$_entries = array(...)

The entries in this table

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

getAvgCharWidth()

Get the average weighted escapement.

getBreakChar()

Get the break character.

getCapHeight()

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

getCodePageRange1()

Get Code Page Character Range 1.

getCodePageRange2()

Get Code Page Character Range 2.

getDefaultChar()

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

getEntry()

Parameters
$name
 

getFamilyClass()

Get the font-family class and subclass.

getFirstCharIndex()

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

getFsSelection()

Get font selection flags.

getFsType()

Get the type flags.

getLastCharIndex()

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

getLowerOpticalPointSize()

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

getMaxContext()

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

getPanose()

Get the PANOSE classification number.

getRecord()

getStrikeoutPosition()

Get the strikeout position.

getStrikeoutSize()

Get the strikeout size.

getSubscriptXOffset()

Get the subscript x offset.

getSubscriptXSize()

Get the subscript horizontal font size.

getSubscriptYOffset()

Get the subscript y offset.

getSubscriptYSize()

Get the subscript vertical font size.

getSuperscriptXOffset()

Get the superscript x offset.

getSuperscriptXSize()

Get the superscript horizontal font size.

getSuperscriptYOffset()

Get the superscript y offset.

getSuperscriptYSize()

Get the superscript vertical font size.

getTypoAscender()

Get the typographic ascender for this font.

getTypoDescender()

Get the typographic descender for this font.

getTypoLineGap()

Get the typographic line gap for this font.

getUnicodeRange1()

Get Unicode Character Range 1.

getUnicodeRange2()

Get Unicode Character Range 2.

getUnicodeRange3()

Get Unicode Character Range 3.

getUnicodeRange4()

Get Unicode Character Range 4.

getUpperOpticalPointSize()

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

getVendorId()

Get the Font Vendor Identification.

getVersion()

Get the OS/2 table version number.

getWeightClass()

Get the weight class.

getWidthClass()

Get the width class.

getWinAscent()

Get the ascender metric for Windows.

getWinDescent()

Get the descender metric for Windows.

getXHeight()

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