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

Summary

Methods

getGlyphWidth()

abstract public CollectionInterface::getGlyphWidth (
string $char,
string $encoding = 'UTF-16BE'
): float|bool

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|bool

Get the glyphs width of a string.

Parameters
$chars : string

The string

$encoding : string

The encoding of the characters