FontStyle
The FontStyle struct defines properties for configuring font appearance, including size, scale, and color, as well as settings for fixed-width fonts, kerning, spacing, and shadow effects.
#include <interface/TellusimTypes.h>
Constructors
FontStyle()
explicit FontStyle(uint32_t size)
explicit FontStyle(const Color &color)
FontStyle(uint32_t size, const Color &color)
Variables
| Type | Name | Value | Description |
|---|---|---|---|
| uint32_t | size | 16 | Font size. |
| uint32_t | scale | 100 | Font scale. |
| bool | fixed | false | Font width. |
| bool | kerning | true | Font kerning. |
| Vector2f | spacing | Vector2f::zero | Font spacing. |
| Color | color | Color::white | Font color. |
| Vector3f | offset | Vector3f::zero | Shadow offset. |
| Color | shadow | Color::black | Shadow color. |