Legacy:Font/getHeight: Difference between revisions
Jump to navigation
Jump to search
created from http://web.archive.org/web/20120504060012/http://www.spheredev.org/wiki/Font.getHeight |
filled |
||
| Line 1: | Line 1: | ||
Get the height of a font character, in pixels. | Get the height of a font character, in pixels. | ||
| Line 6: | Line 4: | ||
==Usage== | ==Usage== | ||
{{Usage|returns=integer|object=Font|func=getHeight | {{Usage|returns=integer|object=Font|func=getHeight}} | ||
==Examples== | ==Examples== | ||
See examples for the [[API:Font|Font]] object. | |||
==Notes== | ==Notes== | ||
( | * The height of every character in a single font are equal. This function could be used to place lines one underneath the other using only [[API:Font/drawText|Font.drawText]](). | ||
==See also== | ==See also== | ||
* | * Sphere [[API:Font|Font]] object | ||
* | * [[API:Font/drawText|Font.drawText]]() | ||
{{API:Font/navbox}} | {{API:Font/navbox}} | ||
Latest revision as of 22:39, 24 June 2013
Get the height of a font character, in pixels.
Usage
integer Font.getHeight();
Examples
See examples for the Font object.
Notes
- The height of every character in a single font are equal. This function could be used to place lines one underneath the other using only Font.drawText().
See also
- Sphere Font object
- Font.drawText()