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()

public static SetaPDF_Core_Font_TrueType_Subset_Table::getClassName (
string $tag
): string

Get a class name by tag name.

Parameters
$tag : string
 
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()

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

write()