font.eh
Font handling. More...
Constants
Functions
Description
Font in Alchemy UI is specified as OR-combined mask of constants defined in
this header. For example, to set large italicized font on
TextItem
you should use
If requested font does not exist then system will provide closest match.
Constant details
Default font face for the system.
Monospace font face.
Proportional font face.
Plain font style.
Can be combined with other style constants.
Bold font style.
Can be combined with other style constants.
Italicized font style.
Can be combined with other style constants.
Underlined font style.
Can be combined with other style constants.
The "small" system-dependent font size.
The "medium" system-dependent font size.
The "large" system-dependent font size.
Function details
Returns the width given string will occupy when rendered with specified font.
def font_height(font: Int): Int;
|
Returns the standard height of a line of text in specified font.
def font_baseline(font: Int): Int;
|
Gets the distance in pixels from the top of the text to the text's baseline in specified font.