TextSetRenderMode

Syntax

Success = TextSetRenderMode(Text, RenderMode)

Description

Sets the anti-aliasing rendering mode for a specific text object.

Parameters

Text
The handle of the text object created via CreateText().

RenderMode
The rendering mode constant to apply: - #PG_Text_RenderMode_GrayScale (0): Standard Grayscale anti-aliasing. - #PG_Text_RenderMode_ClearType (1): Sub-pixel ClearType anti-aliasing (best for LCD screens). - #PG_Text_RenderMode_Aliased (2): No anti-aliasing (jagged edges).

Return Value

Returns #True on success, or #False if the parameters are invalid.

Remarks

ClearType anti-aliasing generally requires an opaque background to blend correctly. If drawing to a transparent background, ProGUI or the underlying OS might automatically fallback to Grayscale rendering.

See Also

CreateText, DrawTxt

Supported OS

Windows, Linux