TextWidget::SetTextTracking
Defined in:
Sets the tracking for a text widget.
C4Widgets.h
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