Legacy:Font/getHeight: Difference between revisions

From Spherical
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|params={{{params}}}}}
{{Usage|returns=integer|object=Font|func=getHeight}}
 
* '''param1''' type. param1 description
* '''param2''' type. param2 description
* '''paramN''' type. paramN description


==Examples==
==Examples==
(examples with syntaxhighlighted code)
See examples for the [[API:Font|Font]] object.


==Notes==
==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==
* see also
* Sphere [[API:Font|Font]] object
* see also
* [[API:Font/drawText|Font.drawText]]()
* see also
* etc


{{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

API:Font/navbox