SetaPDF_Core_Font_Glyph_List Class for accessing adobes glyph lists

File: /SetaPDF/Core/Font/Glyph/List.php

Class hierarchy

Summary

Constants

LIST_AGL

const string SetaPDF_Core_Font_Glyph_List::LIST_AGL = 'glyphlist'

Constant for the adobe glyph list

LIST_AGLFN

Constant for the adobe glyph list for new fonts

LIST_CUSTOM

const string SetaPDF_Core_Font_Glyph_List::LIST_CUSTOM = 'custom'

Constant for custom glyph names

LIST_ZDGL

const string SetaPDF_Core_Font_Glyph_List::LIST_ZDGL = 'zapfdingbats'

Constant for the zapfdingbats glyph list


Static Properties

$lists

static public array SetaPDF_Core_Font_Glyph_List::$lists = array(...)

The glyph lists


Static Methods

_byName()

static protected string SetaPDF_Core_Font_Glyph_List::_byName ( $name $name [, string $primaryList = self::LIST_AGL ] )

Get the UTF-16BE value from a glyph list.

Parameters
$name : $name
 
$primaryList : string
 

byCode()

static public bool|string SetaPDF_Core_Font_Glyph_List::byCode ( string $code [, string $encoding = 'UTF-16BE' [, string $primaryList = self::LIST_AGL ]] )

Get the glyph name by the value.

Parameters
$code : string

The value

$encoding : string

The encoding of the value

$primaryList : string

Use LIST_XXX constant

Return Values

If glyph was found the name will be returned as string.
Otherwise false will be returned.

Exceptions

Throws InvalidArgumentException if the glyph list is unknown.

byName()

static public bool|string SetaPDF_Core_Font_Glyph_List::byName ( string $name [, string $primaryList = self::LIST_AGL ] )

Get the UTF-16BE values by a glyph name.

Parameters
$name : string

The glyph name

$primaryList : string

Use LIST_XXX constant

Return Values

If glyph was found the UTF-16BE values will be returned as string.
Otherwise false will be returned.

Exceptions

Throws InvalidArgumentException if the glyph list is unknown.

byUtf16Be()

static public string SetaPDF_Core_Font_Glyph_List::byUtf16Be ( string $code [, string $primaryList = self::LIST_AGL ] )

Get the glyph name by the UTF-16BE value.

Parameters
$code : string

The UTF-16BE value

$primaryList : string

Use LIST_XXX constant

Return Values

The glyph name will be returned as string.

Exceptions

Throws InvalidArgumentException if the glyph list is unknown.

byUtf16BeString()

static public array SetaPDF_Core_Font_Glyph_List::byUtf16BeString ( string $string [, string $primaryList = self::LIST_AGL ] )

Get a list of all glyphs used in the string.

Parameters
$string : string

The UTF-16BE value

$primaryList : string

Use LIST_XXX constant

Exceptions

Throws InvalidArgumentException if the glyph list is unknown.