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
$_glyphs
private array<\SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData_Glyph|false> GlyphData::$_glyphs = array()
The glyphs to subset.
Static Methods
getClassName()
Methods
__construct()
public GlyphData::__construct ()
Parameters
- $table : \SetaPDF_Core_Font_TrueType_Table
- $file : \SetaPDF_Core_Font_TrueType_Subset_File
Exceptions
getGlyph()
public GlyphData::getGlyph (
int $glyphId
): \SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData_Glyph|falseGets the new glyph.
Parameters
- $glyphId : int
The new glyphId
getNewGlyphId()
Gets the new glyph id by its original glyph id.
Parameters
- $originalGlyphId : int
Exceptions
Throws \Exception
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
write()
Writes the table.
Parameters
- $writer : \SetaPDF_Core_Writer_WriterInterface
Exceptions
Throws \Exception