Member variable XbpCrt():fontHeight Foundation

Sets the height of the font for displaying characters in the text mode.

Attribute: EXPORTED
Data type: Numeric (16)

:fontHeight is used to set the font height for characters output in the text mode (such as output by QOut() or @... SAY). The default value is 16.

The font height is multiplied by the number of rows :maxRow+1 to determine the height of the XbpCrt window on the screen. The calculation used is :fontHeight * (:maxRow + 1) == width. Translating row coordinates in the text mode to graphic y coordinates is also performed using :fontHeight.

:fontHeight is used to select a font with the corresponding character height. 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 :fontHeight corresponds to the character height of the font actually installed. See also :fontName and :fontWidth.


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.