setasign\SetaPDF2\Core\Font

Cid Abstract class representing a CID font

File: /SetaPDF v2/Core/Font/Cid.php
Old class name (alias): \SetaPDF_Core_Font_Cid

Class hierarchy

Implements

Summary

Properties

$_dictionary

The dictionary of the CID font

$_fontDescriptor

The font descriptor object

$_indirectObject

The indirect object of the CID font


Methods

__construct()

public Cid::__construct (
\SetaPDF_Core_Type_IndirectObjectInterface $indirectObjectOrDictionary
)

The constructor.

Parameters
$indirectObjectOrDictionary : \SetaPDF_Core_Type_IndirectObjectInterface
 

getCidSystemInfo()

public Cid::getCidSystemInfo (
void
): array

Get an array with entries that define the character collection of the CIDFont.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getDefaultWidth()

public Cid::getDefaultWidth (
void
): int

Get the default width for glyphs in the CIDFont.

getDictionary()

Get the font dictionary.

getFontDescriptor()

Get the font descriptor object.

Exceptions

Throws Exception

getFontName()

public Cid::getFontName (
void
): string

Get the font name.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getGlyphWidth()

public Cid::getGlyphWidth (
int $cid
): float|int

Get the width of a glyph/character.

Parameters
$cid : int
 

getIndirectObject()

getType()

public Cid::getType (
void
): string

Get the Subtype entry of the font dictionary.

Exceptions

Throws \setasign\SetaPDF2\Core\Type\Exception

getVerticalMetrics()

public Cid::getVerticalMetrics (
void
): int[]

Get the vertical metrics in the CIDFont.