DxGetFontHeight

From Multi Theft Auto: Wiki
Revision as of 19:26, 2 March 2008 by Talidan (talk | contribs)
Jump to navigation Jump to search

This function retrieves the theoretical height of a certain piece of text, if it were to be drawn using dxDrawText.

Syntax

int dxGetFontHeight ( [float scale=1,string font="default"] )

Required Arguments

None

Optional Arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • scale: The size of the text
  • font: The font of the text

Returns

Returns an integer of the height of the text.

Example

--TODO

See Also