C4 Engine
C4 Engine API Documentation

TextWidget::SetTextScale

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

void SetTextScale(float scale) const;

void SetTextScale(const Vector2D& scale) const;

Parameters
scale The new scale. This should be greater than 0.0.
Description
The SetTextScale function sets the text scale for a text widget to the value specified by the scale parameter. When text is rendered, the font size is multiplied by the text scale to determine the final size of the glyphs. The default text scale is (1.0, 1.0).
See Also

TextWidget::SetTextScale

TextWidget::GetTextOffset

TextWidget::SetTextOffset

TextWidget::GetFontSize

TextWidget::SetFontSize