setasign\SetaPDF2\Core\Font\Glyph\Collection
CollectionInterface An interface for glyph collections
File: /SetaPDF v2/Core/Font/Glyph/Collection/CollectionInterface.php
Old class name (alias):
\SetaPDF_Core_Font_Glyph_Collection_CollectionInterface
Implemented in
- \setasign\SetaPDF2\Core\Font\Font
- \setasign\SetaPDF2\Core\Font\FontInterface
- \setasign\SetaPDF2\Core\Font\TrueType\Subset
Summary
Methods
getGlyphWidth()
abstract public CollectionInterface::getGlyphWidth (
string $char,
string $encoding = 'UTF-16BE'
): float|boolstring $encoding = 'UTF-16BE'
Get the glyph width of a single character.
Parameters
- $char : string
The character
- $encoding : string
The encoding of the character
getGlyphsWidth()
abstract public CollectionInterface::getGlyphsWidth (
string $chars,
string $encoding = 'UTF-16BE'
): float|boolstring $encoding = 'UTF-16BE'
Get the glyphs width of a string.
Parameters
- $chars : string
The string
- $encoding : string
The encoding of the characters