Sgss_Font_Metrics_Interface 
Provides for aggregation of font and glyph metrics

Description

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

Class overview

Methods

float getAscent ()

Returns the ascent of this font

float getCapHeight ()

Returns the cap height of this font

float getDescent ()

Returns the descent of this font

Sgss_Font_Metrics_Glyph getGlyph (int $glyphCode)

Returns the glyph metrics corresponding to the specified glyph code in this font

array getGlyphs (array $glyphCodes)

Returns all the glyph metrices corresponding to the specified glyph codes in this font

float getLineGap ()

Returns the line gap of this font

float getMaxAdvance ()

Returns the maximum advance of every glyphs in this font

float getMaxAscent ()

Returns the maximum ascent of every glyphs in this font

float getMaxDescent ()

Returns the maximum descent of every glyphs in this font

float getXHeight ()

Returns the x height of this font

Method detail

getAscent

Returns the ascent of this font

Returns:
float -- Ascent of this font
Signature:
public float getAscent ()


getCapHeight

Returns the cap height of this font

Returns:
float -- Cap height of this font
Signature:
public float getCapHeight ()


getDescent

Returns the descent of this font

Returns:
float -- Descent of this font
Signature:
public float getDescent ()


getGlyph

Returns the glyph metrics corresponding to the specified glyph code in this font

Parameters:
  • int $glyphCode

    Glyph code

Returns:
Sgss_Font_Metrics_Glyph -- Glyph metrics corresponding to the glyph code
Used by:
Sgss_Font_Abstract::getGlyph()
Signature:
public Sgss_Font_Metrics_Glyph getGlyph (int $glyphCode)


getGlyphs

Returns all the glyph metrices corresponding to the specified glyph codes in this font

Parameters:
  • array $glyphCodes

    Glyph codes

Returns:
array -- Array containing the glyph metrices corresponding to the glyph codes
Used by:
Sgss_Font_Abstract::getGlyphs()
Signature:
public array getGlyphs (array $glyphCodes)


getLineGap

Returns the line gap of this font

Returns:
float -- Line gap of this font
Signature:
public float getLineGap ()


getMaxAdvance

Returns the maximum advance of every glyphs in this font

Returns:
float -- Maximum advance of every glyphs in this font
Signature:
public float getMaxAdvance ()


getMaxAscent

Returns the maximum ascent of every glyphs in this font

Returns:
float -- Maximum ascent of every glyphs in this font
Signature:
public float getMaxAscent ()


getMaxDescent

Returns the maximum descent of every glyphs in this font

Returns:
float -- Maximum descent of every glyphs in this font
Signature:
public float getMaxDescent ()


getXHeight

Returns the x height of this font

Returns:
float -- X height of this font
Signature:
public float getXHeight ()