C4 Engine
C4 Engine API Documentation

TextWidget::SetTextSkew

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

void SetTextSkew(float skew) const;

Parameters
skew The new skew value.
Description
The SetTextSkew function sets the skew for a text widget to the value specified by the skew parameter. The skew determines how much glyphs are slanted to the right or left, and it is equal to the ratio of the change in x coordinate to the change in y coordinate, where the y coordinate is the distance above the baseline. Positive skew values cause the text to be slanted to the right, and negative skew values cause the text to be slanted to the left. The default text skew is 0.0, which means that no skew is applied. Skew is independent of tracking and kerning.
See Also

TextWidget::GetTextSkew

TextWidget::GetTextTracking

TextWidget::SetTextTracking

TextWidget::GetTextFlags

TextWidget::SetTextFlags