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

$_changedData

The modified data.

$_mapping

Original glyph id to new glyph id mapping array.


Static Methods

getClassName()

Get a class name by tag name.

Parameters
$tag
 
Exceptions

Throws InvalidArgumentException


Methods

cleanUp()

Release memory and cycled references.

getGlyph()

Gets the new glyph.

Parameters
$glyphId : int

The new glyphId

getMapping()

Gets all original to new glyph id mappings.

getNewGlyphId()

public SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData::getNewGlyphId (
int $originalGlyphId
): int|int[]

Gets the new glyph id by its original glyph id.

Parameters
$originalGlyphId : int
 
Exceptions

Throws Exception

getNumGlyphs()

Gets the current number of registered glyphs.

getOriginalTable()

registerGlyph()

public SetaPDF_Core_Font_TrueType_Subset_Table_GlyphData::registerGlyph (
int $originGlyphId
): int|false

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