Sgss_Font_Truetype_Mapper_Cmap_Segmentdelta
Represents a TrueType cmap in the segment-delta format

Description

Class diagram:
Sgss_Font_Truetype_Mapper_Cmap
 + Sgss_Font_Truetype_Mapper_Cmap_Segmentdelta
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Font/Truetype/Mapper/Cmap/Segmentdelta.php (line 51)

Class overview

Variables

protected int $_entrySelector

Entry selector value

protected int $_rangeShift

Range shift value

protected int $_segCount

Number of contiguous ranges

Methods

__construct (Sgss_Font_Cache $cache)

The constructor

int charToGlyph (int $char)

Converts the specified character code to the corresponding glyph code

Inherited from Sgss_Font_Truetype_Mapper_Cmap:
charsToGlyphs(), charToGlyph(), factory()

Variable detail

$_entrySelector 

Entry selector value

Signature:
protected int $_entrySelector


$_rangeShift 

Range shift value

Signature:
protected int $_rangeShift


$_segCount 

Number of contiguous ranges

Signature:
protected int $_segCount


Method detail

__construct

The constructor

Parameters:
Signature:
public __construct (Sgss_Font_Cache $cache)


charToGlyph

Converts the specified character code to the corresponding glyph code

Parameters:
  • int $char

    Character code to be converted

Returns:
int -- Glyph code
Overrides:
Related subject:
Sgss_Font_Mapper_Truetype_Cmap::charToGlyph()
Signature:
public int charToGlyph (int $char)