FONTWIDTH (function): Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "{{DISPLAYTITLE:_FONTWIDTH (function)}} The {{KW|_FONTWIDTH (function)|_FONTWIDTH}} function returns the point-size width of a monospace font. {{PageSyntax}} :<code>''result&'' = {{KW|_FONTWIDTH (function)|_FONTWIDTH}}({{Parameter|fontHandle&}})</code> {{PageDescription}} * If {{Parameter|fontHandle&}} is omitted, it is assumed to be the font of the current write page. * If {{Parameter|fontHandle&}} is an invalid handle, an invalid handle error is thr...")
 
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:_FONTWIDTH (function)}}
{{DISPLAYTITLE:_FONTWIDTH (function)}}


The {{KW|_FONTWIDTH (function)|_FONTWIDTH}} function returns the point-size width of a monospace font.
The [[_FONTWIDTH (function)|_FONTWIDTH]] function returns the point-size width of a monospace font.




{{PageSyntax}}
{{PageSyntax}}
:<code>''result&'' = {{KW|_FONTWIDTH (function)|_FONTWIDTH}}({{Parameter|fontHandle&}})</code>
:<code>''result&'' = [[_FONTWIDTH (function)|_FONTWIDTH]]({{Parameter|fontHandle&}})</code>




Line 15: Line 15:


{{PageSeeAlso}}
{{PageSeeAlso}}
* {{KW|_FONTWIDTH}}
* [[_FONTWIDTH]]
* {{KW|_FONTHEIGHT}}, {{KW|_FONTHEIGHT (function)}}
* [[_FONTHEIGHT]], [[_FONTHEIGHT (function)]]
* {{KW|_LOADFONT}}
* [[_LOADFONT]]




{{PageNavigation}}
{{PageNavigation}}

Revision as of 00:49, 25 January 2023


The _FONTWIDTH function returns the point-size width of a monospace font.


Syntax

result& = _FONTWIDTH(fontHandle&)


Description

  • If fontHandle& is omitted, it is assumed to be the font of the current write page.
  • If fontHandle& is an invalid handle, an invalid handle error is thrown.
  • If the font specified by fontHandle& is not a monospace font, 0 (zero) is returned.


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link