FontStyleConcept is the base class for the nodes that draw text with different font styles. More...
#include <kanzi/ui/node/concept/font_style_concept.hpp>
Static Public Member Functions | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Attributes | |
Properties | |
Used by text block nodes for font styling. | |
static PropertyType< float > | SizeProperty |
Sets the size for the font in pixels. | |
static PropertyType< FontStyle > | StyleProperty |
Sets the style for the font. | |
static PropertyType< FontWeight > | WeightProperty |
Sets the weight for the font. | |
static PropertyType< float > | CharacterSpacingProperty |
Sets the character spacing in pixels. | |
static PropertyType< float > | FixedCharacterWidthProperty |
Overrides the font advance widths and makes each character take a fixed amount of space specified in pixels. | |
static PropertyType< float > | LineSpacingProperty |
Sets the line spacing in multiples of the normal line height of the selected font. | |
static PropertyType< bool > | FractionalCharacterWidthProperty |
Sets whether Kanzi uses fractional or rounded character widths to lay out text. | |
static PropertyType< bool > | SnapCharacterToPixelProperty |
Sets whether Kanzi positions characters in 2D rendering to the nearest pixel: | |
static PropertyType< FontHintingPreference > | HintingPreferenceProperty |
Sets the hinting preference of the selected font. | |
FontStyleConcept is the base class for the nodes that draw text with different font styles.
|
static |
|
static |
Sets the size for the font in pixels.
The default value is 36.0f.
|
static |
Sets the style for the font.
The default value is FontStyle::Normal.
|
static |
Sets the weight for the font.
The default value is FontWeight::Normal.
|
static |
Sets the character spacing in pixels.
The default value is 0.0f.
|
static |
Overrides the font advance widths and makes each character take a fixed amount of space specified in pixels.
The default value is -1.0f.
|
static |
Sets the line spacing in multiples of the normal line height of the selected font.
The default value is 1.0f.
|
static |
Sets whether Kanzi uses fractional or rounded character widths to lay out text.
In most cases fractional widths provide the best result. However, with small font sizes, fractional widths can cause the characters to run together or have too much space, making it difficult to read.
|
static |
Sets whether Kanzi positions characters in 2D rendering to the nearest pixel:
|
static |
Sets the hinting preference of the selected font.
The default value is FontHintingPreference::NativeHinting.