procedure RenderText( X, Y: Integer; const Text: String; AALevel: Integer; Color: TColor32);
procedure RenderTextW( X, Y: Integer; const Text: Widestring; AALevel: Integer; Color: TColor32);
The RenderText or RenderTextW (the Unicode-Version) method draws a string of characters. This method is much slower compared to TextOut functions, however it supports antialiasing and transparency. AALevel specifies how the text is antialiased. If it is zero, no antialiasing is performed, the value of 4 corresponds to a maximum quality.
Note, that quality of the text is also influenced by the system font antialiasing.
This method draws a string using current Font, but it ignores the Font.Color property, substituting it with the Color parameter.
Please note that the CLX versions of the non-Unicode methods do also default to Widestring because that is the native QT string format.
Examples, TextExtent, TextOut, Font, Color Types
Copyright ©2000-2024 Alex Denisov and the Graphics32 Team - Graphics32 2.0 - Help file built on 18 Feb 2024