C4 Engine
C4 Engine API Documentation

TextWidget::SetTextTracking

Defined in:  C4Widgets.h
Sets the tracking for a text widget.
Prototype

void SetTextTracking(float tracking) const;

Parameters
tracking The new tracking, in em units.
Description
The SetTextTracking function sets the tracking, in em units, for a text widget to the value specified by the tracking parameter. The tracking value determines how much extra spacing is added between all pairs of consecutive glyphs. It is multiplied by the font size and text scale to calculate the actual distance added between glyphs. The default text tracking is 0.0 em, which means that glyphs are spaced exactly as far apart as specified in the font resource, without any additional spacing. If kerning is enabled, then it is applied in addition to tracking.
See Also

TextWidget::GetTextTracking

TextWidget::GetTextLeading

TextWidget::SetTextLeading

TextWidget::GetTextSkew

TextWidget::SetTextSkew