setasign\SetaPDF2\Core\Font\TrueType\Subset\Table
GlyphData This class represents the "glyf" table in a sub-setting context.
File: /SetaPDF v2/Core/Font/TrueType/Subset/Table/GlyphData.php
Old class name (alias):
\SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData
See https://www.microsoft.com/typography/otspec/glyf.htm for more details.
Class hierarchy
Summary
Properties
$_hmtx
private HorizontalMetrics GlyphData::$_hmtx
Static Methods
getClassName()
Methods
__construct()
public GlyphData::__construct ()
Parameters
- $table : \setasign\SetaPDF2\Core\Font\TrueType\Table\AbstractTable
- $file : \setasign\SetaPDF2\Core\Font\TrueType\Subset\File\AbstractFile
Exceptions
getNewGlyphId()
Gets the new glyph id by its original glyph id.
Parameters
- $originalGlyphId : int
Exceptions
Throws \Exception
getOriginalTable()
public AbstractTable::getOriginalTable (
void
): \setasign\SetaPDF2\Core\Font\TrueType\Table\AbstractTableGets the original table.
registerGlyph()
Registers a glyph using his glyph id and returns a new glyph id.
Parameters
- $originGlyphId : int
The origin glyph id
Return Values
The new glyph id