Sgss_Font_Mapper_Interface 
Provides for conversion from character code to glyph code

Description

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

Class overview

Methods

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

boolean hasGlyph (int $charCode)

Determines whether this font contains the glyph corresponding to the specified character code

boolean hasGlyphs (array $charCodes)

Determines whether this font contains all the glyphs corresponding to the specified character codes

Constant

GLYPH_MISSING = 0 Missing glyph code

Method detail

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
Used by:
Sgss_Font_Abstract::getGlyphs(), Sgss_Font_Abstract::getGlyphCodes()
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
Used by:
Sgss_Font_Mapper_Abstract::hasGlyphs(), Sgss_Font_Mapper_Abstract::hasGlyph(), Sgss_Font_Abstract::getGlyph(), Sgss_Font_Abstract::getGlyphCode()
Signature:
public int charToGlyph (int $charCode)


hasGlyph

Determines whether this font contains the glyph corresponding to the specified character code

Parameters:
  • int $charCode

    Character code to determine

Returns:
boolean -- True when this font contains the glyph corresponding to the character code
Used by:
Sgss_Font_Abstract::hasGlyph()
Signature:
public boolean hasGlyph (int $charCode)


hasGlyphs

Determines whether this font contains all the glyphs corresponding to the specified character codes

Parameters:
  • array $charCodes

    Character codes to determine

Returns:
boolean -- True when this font contains all the glyphs corresponding to the character codes
Used by:
Sgss_Font_Abstract::hasGlyphs()
Signature:
public boolean hasGlyphs (array $charCodes)


Constant detail

GLYPH_MISSING

Missing glyph code

Signature:
const GLYPH_MISSING = 0