Previous: 4.53.2.1.14. setFGColor() To the Table of Contents Next: 4.53.2.1.16. textHeight()
4.53.2.1.14. setFGColor() Table of Contents 4.53.2.1.16. textHeight()

- 4.53.2.1.15. -
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.15. textWidth()


4.53.2.1.15. textWidth()

Targets: MS-DOS, Win32 console


ogFont Unit

Retrieves the width of a string.

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

Gets the width of the specified string in pixels. Some fonts hold a subset of characters which can make the string shorter than expected if some non-displayable characters are present.

Return value:

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

See also:







Previous: 4.53.2.1.14. setFGColor() To the Table of Contents Next: 4.53.2.1.16. textHeight()
4.53.2.1.14. setFGColor() Table of Contents 4.53.2.1.16. textHeight()

- 4.53.2.1.15. -