setasign\SetaPDF2\Core\Font\TrueType\Subset\File
Identity Font subsetting class used for identity encoding (more bytes).
File: /SetaPDF v2/Core/Font/TrueType/Subset/File/Identity.php
Old class name (alias):
\SetaPDF_Core_Font_TrueType_Subset_File_Identity
Class hierarchy
Summary
Properties
$_cmapOriginSubTable
private \SetaPDF_Core_Font_TrueType_Table_CharacterToGlyphIndexMapping_SubTable Identity::$_cmapOriginSubTable
A cmap sub table, in order to get the glyph ids.
Static Methods
calculateChecksumAdjustment()
public static AbstractFile::calculateChecksumAdjustment (
string $offsetData,
string[] $checksums
): stringstring[] $checksums
Calculates the checksum adjustment.
Parameters
- $offsetData : string
- $checksums : string[]
Methods
__construct()
_resolveGlyphs()
Resolves all the glyphs recursively and updates the data array accordingly.
Parameters
- $glyphs : array
- $data : array
- $depth : int
Exceptions
_writeOffsetTable()
_writeTable()
Writes a single table and returns information about it.
Parameters
- $writer : \SetaPDF_Core_Writer_WriterInterface
- $tag : string
_writeTables()
addChar()
Adds a character to the subset and returns the value to which it is registered.
Parameters
- $char : string
The char in UTF16-BE encoding
Exceptions
addCharCode()
Adds a char code to the subset.
Parameters
- $charCode : int
The unicode point to add.
Return Values
The new point in the individual encoding.