Sgss_Font_Mapper_Composite
Provides conversion from character code to glyph code for composite font

Description

Class diagram:
Sgss_Font_Mapper_Abstract
 + Sgss_Font_Mapper_Composite
Used by:
Sgss_Font_Composite::__construct()
Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
Usedby:
Sgss_Font_Composite::__construct()
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Font/Mapper/Composite.php (line 46)

Class overview

Variable

protected Sgss_Font_Composite_Rangemap_Abstract $_rangemap

Character code range map of this font

Methods

__construct (Sgss_Font_Composite_Rangemap_Abstract $rangemap)

The constructor

array charsToGlyphs (array $charCodes)

Converts all the specified character codes to the corresponding glyph codes of this font

int charToGlyph (int $charCode)

Converts the specified character code to the corresponding glyph code of this font

Inherited from Sgss_Font_Mapper_Abstract:
hasGlyph(), hasGlyphs()

Variable detail

$_rangemap 

Character code range map of this font

Signature:
protected Sgss_Font_Composite_Rangemap_Abstract $_rangemap


Method detail

__construct

The constructor

Parameters:
Signature:
public __construct (Sgss_Font_Composite_Rangemap_Abstract $rangemap)


charsToGlyphs

Converts all the specified character codes to the corresponding glyph codes of this font

Parameters:
  • array $charCodes

    Character codes to be converted

Returns:
array -- Array containing all the glyph codes of this font corresponding to the character codes
Uses:
Sgss_Font_Mapper_Composite::charToGlyph()
Related subject:
Sgss_Font_Mapper_Interface::charsToGlyphs()
Signature:
public array charsToGlyphs (array $charCodes)


charToGlyph

Converts the specified character code to the corresponding glyph code of this font

Parameters:
  • int $charCode

    Character code to be converted

Returns:
int -- Glyph code of this font corresponding to the character code
Uses:
Sgss_Font_Composite_Rangemap_Abstract::getFontId()
Used by:
Sgss_Font_Mapper_Composite::charsToGlyphs()
Related subjects:
Sgss_Font_Mapper_Interface::charToGlyph(), Sgss_Font_Mapper_Interface::GLYPH_MISSING
Signature:
public int charToGlyph (int $charCode)