Skip to main content

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

TypeNameValueDescription
uint32_tsize16Font size.
uint32_tscale100Font scale.
boolfixedfalseFont width.
boolkerningtrueFont kerning.
Vector2fspacingVector2f::zeroFont spacing.
ColorcolorColor::whiteFont color.
Vector3foffsetVector3f::zeroShadow offset.
ColorshadowColor::blackShadow color.