Member variable XbpCrt():fontWidth Foundation

Sets the width of the font used to display characters in the text mode.

Attribute: EXPORTED
Data type: Numeric (8)
Description

:fontWidth sets the width of characters output in text mode (such as output by QOut() or @... SAY). The default value is 8.

The font width multiplied by the number of columns :maxCol+1determines the width of the XbpCrt window on the screen. The calculation is :fontWidth * (:maxCol+1) == height. The translation of text mode column coordinates to graphic x coordinates is done using :fontWidth.

:fontWidth is used to select a font with the corresponding character width. This is achieved by the methods :create() and :configure(). To change the font used by an XbpCrt object that is already created, the methods :setFont() and :setFontCompoundName() can be used. If the corresponding font is not available, the font that provides the "best fit" gets installed. The value in :fontWidth corresponds to the character width of the font actually installed. See also :fontName and :fontHeight.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.