Sgss_Font_Metrics_Abstract
+ Sgss_Font_Truetype_Metrics
|
$_ascent
Ascent in EM square grid of this font |
|
$_capHeight
Cap height in EM square grid of this font |
|
$_descent
Descent in EM square grid of this font |
|
$_lineGap
Line gap in EM square grid of this font |
|
$_maxAdvance
Maximum advance in EM square grid of every glyphs in this font |
|
$_maxAscent
Maximum ascent in EM square grid of every glyphs in this font |
|
$_maxDescent
Maximum descent in EM square grid of every glyphs in this font |
|
$_numGlyphs
Number of glyphs in this font |
|
$_numMetrics
Number of glyph metrices in this font |
|
$_scaler
Number of grids per EM length |
|
$_xHeight
X height in EM square grid of this font |
|
__construct (Sgss_Font_Cache $cache)
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 |
Ascent in EM square grid of this font
protected int $_ascent
Cap height in EM square grid of this font
protected int $_capHeight
Descent in EM square grid of this font
protected int $_descent
Line gap in EM square grid of this font
protected int $_lineGap
Maximum advance in EM square grid of every glyphs in this font
protected int $_maxAdvance
Maximum ascent in EM square grid of every glyphs in this font
protected int $_maxAscent
Maximum descent in EM square grid of every glyphs in this font
protected int $_maxDescent
Number of glyphs in this font
protected int $_numGlyphs
Number of glyph metrices in this font
protected int $_numMetrics
Number of grids per EM length
protected int $_scaler
X height in EM square grid of this font
protected int $_xHeight
The constructor
Sgss_Font_Cache $cache
Cache file object to be used
The constructor
public __construct (Sgss_Font_Cache $cache)
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 ()