SetaPDF_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
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> SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData::$_glyphs = array()
The glyphs to subset.
Static Methods
getClassName()
Methods
__construct()
Parameters
- $table : SetaPDF_Core_Font_TrueType_Table
- $file : SetaPDF_Core_Font_TrueType_Subset_File
Exceptions
Throws SetaPDF_Core_Font_Exception
getGlyph()
public SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData::getGlyph (
int $glyphId
): SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData_Glyph|falseGets the new glyph.
Parameters
- $glyphId : int
The new glyphId
getNewGlyphId()
public SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData::getNewGlyphId (
int $originalGlyphId
): intGets the new glyph id by its original glyph id.
Parameters
- $originalGlyphId : int
Exceptions
Throws Exception
getOriginalTable()
public SetaPDF_Core_Font_TrueType_Subset_Table::getOriginalTable (
void
): SetaPDF_Core_Font_TrueType_TableGets the original table.
registerGlyph()
public SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData::registerGlyph (
int $originGlyphId
): int|falseRegisters 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