Sgss_Font_Truetype_Mapper_Cmap 
Abstract class for TrueType cmap

Description

Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Font/Truetype/Mapper/Cmap.php (line 40)

Direct descendants

Sgss_Font_Truetype_Mapper_Cmap_Byteencoding Represents a TrueType cmap in the byte-encoding format
Sgss_Font_Truetype_Mapper_Cmap_Segmentdelta Represents a TrueType cmap in the segment-delta format

Class overview

Methods

array charsToGlyphs (array $chars)

Converts all the specified character codes to the corresponding glyph codes

abstract int charToGlyph (int $char)

Converts the specified character code to the corresponding glyph code

static Sgss_Font_Truetype_Mapper_Cmap factory (Sgss_Font_Cache $cache)

Creates the TrueType cmap object

Method detail

charsToGlyphs

Converts all the specified character codes to the corresponding glyph codes

Parameters:
  • array $chars

    Character codes to be converted

Returns:
array -- Array containing all the glyph codes
Related subject:
Sgss_Font_Truetype_Mapper_Cmap::charToGlyph()
Signature:
public array charsToGlyphs (array $chars)


charToGlyph 

Converts the specified character code to the corresponding glyph code

Parameters:
  • int $char

    Character code to be converted

Returns:
int -- Glyph code
Overridden by:
Used by:
Sgss_Font_Truetype_Mapper::charsToGlyphs(), Sgss_Font_Truetype_Mapper::charToGlyph()
Signature:
abstract public int charToGlyph (int $char)


factory 

Creates the TrueType cmap object

Parameters:
Returns:
Sgss_Font_Truetype_Mapper_Cmap -- TrueType cmap object
Used by:
Sgss_Font_Truetype_Mapper::__construct()
Signature:
public static Sgss_Font_Truetype_Mapper_Cmap factory (Sgss_Font_Cache $cache)