setasign\SetaPDF2\Core\Font
FontInterface Font interface
File: /SetaPDF v2/Core/Font/FontInterface.php
Old class name (alias):
\SetaPDF_Core_Font_FontInterface
Implemented in
Implements
Summary
Constants
TYPE_COLOR_SPACE
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_COLOR_SPACE = 'ColorSpace'
Type constant
TYPE_EXT_G_STATE
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_EXT_G_STATE = 'ExtGState'
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
public const string \setasign\SetaPDF2\Core\Resource\ResourceInterface::TYPE_PROPERTIES = 'Properties'
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Methods
getCharCodes()
Get the final character codes of a character string.
Parameters
- $chars : string
The character string
- $encoding : string
The output encoding
getGlyphWidth()
abstract public Glyph\Collection\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 Glyph\Collection\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
getIndirectObject()
abstract public \setasign\SetaPDF2\Core\Resource\ResourceInterface::getIndirectObject (
?\SetaPDF_Core_Document $document = null
): \SetaPDF_Core_Type_IndirectObjectGet the indirect object of this resource.
Parameters
- $document : ?\SetaPDF_Core_Document
getResourceType()
abstract public \setasign\SetaPDF2\Core\Resource\ResourceInterface::getResourceType (
void
): stringGet the resource type of an implementation.