1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/_FONTWIDTH-(function).md
2022-12-24 21:14:48 -06:00

615 B

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

Syntax

result& = _FONTWIDTH (function)(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 ERROR Codes error is thrown.
  • If the font specified by fontHandle& is not a monospace font, 0 (zero) is returned.

See Also