Previous: 4.53.2.1.15. textWidth() To the Table of Contents Next: 4.56. OpenGL - OpenGL API interface unit
4.53.2.1.15. textWidth() Table of Contents 4.56. OpenGL - OpenGL API interface unit

- 4.53.2.1.16. -
Table of Contents
4. Standard Units
4.53. ogFont - BitFont support for ObjGfx 4.0
4.53.2. ogFont Unit Objects
4.53.2.1. ogBitFont object
4.53.2.1.16. textHeight()


4.53.2.1.16. textHeight()

Targets: MS-DOS, Win32 console


ogFont Unit

Retrieves the height of a string.

Declaration:
 function textHeight(const textString:string):uInt32;
Remarks:

Gets the height of the specified string in pixels. Some fonts hold a subset of characters which can make the string not have any displayable characters.

Return value:

Height of the string, 0 if no font is loaded, 0 if the string is empty.

See also:







Previous: 4.53.2.1.15. textWidth() To the Table of Contents Next: 4.56. OpenGL - OpenGL API interface unit
4.53.2.1.15. textWidth() Table of Contents 4.56. OpenGL - OpenGL API interface unit

- 4.53.2.1.16. -