1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 17:55:52 +00:00
QB64-PE/internal/help/_FONTWIDTH.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

30 lines
861 B
Plaintext

The '''_FONTWIDTH''' function returns the font width of a MONOSPACE font handle created by {{KW|_LOADFONT}}.
{{PageSyntax}}
:{{Parameter|pixel_width%}} = {{KW|_FONTWIDTH}}[({{Parameter|font_handle}})]
* Will return width of last font used if a handle is not designated.
* '''Variable width fonts always return width 0.''' Even fixed width fonts will return 0 unless the &quot;MONOSPACE&quot; style option is used.
* '''&quot;MONOSPACE&quot; cannot be used on a variable width font.'''
* The font width is generally 3/4 of the [[_FONTHEIGHT]] specified when loading the font.
* In '''graphics''' [[SCREEN (statement)|screen]] modes, [[_PRINTWIDTH]] can return the total '''pixel width''' of a literal or variable [[STRING|string]] of text.
{{PageSeeAlso}}
*{{KW|_FONTHEIGHT}}
*{{KW|_FONT}}
*{{KW|_LOADFONT}}
*{{KW|_PRINTWIDTH}}
{{PageNavigation}}