SetaPDF_Core_Font_FontInterface Font interface
File: /SetaPDF v2/Core/Font/FontInterface.php
Implemented in
Implements
Summary
Constants
TYPE_COLOR_SPACE
Type constant
TYPE_EXT_G_STATE
Type constant
TYPE_FONT
Type constant
TYPE_PATTERN
Type constant
TYPE_PROC_SET
Type constant
TYPE_PROPERTIES
Type constant
TYPE_SHADING
Type constant
TYPE_X_OBJECT
Type constant
Methods
getCharCodes()
abstract public SetaPDF_Core_Font_FontInterface::getCharCodes (
string $chars [, string $encoding = 'UTF-16BE' ]
): arrayGet the final character codes of a character string.
Parameters
- $chars : string
The character string
- $encoding : string
The output encoding
getGlyphWidth()
abstract public SetaPDF_Core_Font_Glyph_Collection_CollectionInterface::getGlyphWidth (
string $char [, string $encoding = 'UTF-16BE' ]
): float|boolGet the glyph width of a single character.
Parameters
- $char : string
The character
- $encoding : string
The encoding of the character
getGlyphWidthByCharCode()
abstract public SetaPDF_Core_Font_FontInterface::getGlyphWidthByCharCode (
string $charCode
): float|boolGet the width of a glyph by its char code.
Parameters
- $charCode : string
getGlyphsWidth()
abstract public SetaPDF_Core_Font_Glyph_Collection_CollectionInterface::getGlyphsWidth (
string $chars [, string $encoding = 'UTF-16BE' ]
): float|boolGet the glyphs width of a string.
Parameters
- $chars : string
The string
- $encoding : string
The encoding of the characters
getIndirectObject()
abstract public SetaPDF_Core_Resource::getIndirectObject (
[ SetaPDF_Core_Document|null $document = null ]
): SetaPDF_Core_Type_IndirectObjectGet the indirect object of this resource.
Parameters
- $document : SetaPDF_Core_Document|null