Sgss_Font_Metrics_Abstract
+ Sgss_Font_Metrics_Composite
|
$_metrics
Metrics of the parent font |
|
$_rangemap
Character code range map of this font |
|
__construct (Sgss_Font_Composite_Rangemap_Abstract $rangemap)
The constructor |
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 |
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 |
Metrics of the parent font
protected Sgss_Font_Metrics_Interface $_metrics
Character code range map of this font
protected Sgss_Font_Composite_Rangemap_Abstract $_rangemap
The constructor
Sgss_Font_Composite_Rangemap_Abstract $rangemap
Character code range map of the font
The constructor
public __construct (Sgss_Font_Composite_Rangemap_Abstract $rangemap)
Returns the ascent of this font
public float getAscent ()
Returns the cap height of this font
public float getCapHeight ()
Returns the descent of this font
public float getDescent ()
Returns the glyph metrics corresponding to the specified glyph code in this font
int $glyphCode
Glyph code
public Sgss_Font_Metrics_Glyph getGlyph (int $glyphCode)
Returns the line gap of this font
public float getLineGap ()
Returns the maximum advance of every glyphs in this font
public float getMaxAdvance ()
Returns the maximum ascent of every glyphs in this font
public float getMaxAscent ()
Returns the maximum descent of every glyphs in this font
public float getMaxDescent ()
Returns the x height of this font
public float getXHeight ()