Class "FontRenderSettings"⚓︎
Info
This class was added with Repentance+ and is used in the Font:DrawString() function to define special behavior when rendering a text.
This class can be accessed by using its constructor:
Example Code
1 |
|
Constructors⚓︎
FontRenderSettings ()⚓︎
FontRenderSettings FontRenderSettings ( )⚓︎
Returns a Game object.
Example Code
Example usage:
1 2 3 |
|
Functions⚓︎
Enable·Auto·Wrap ()⚓︎
void EnableAutoWrap ( boolean enabled )⚓︎
Enable·Truncation ()⚓︎
void EnableTruncation ( boolean enabled )⚓︎
Get·Alignment ()⚓︎
DrawStringAlignment GetAlignment ( )⚓︎
Get·Line·Height·Modifier ()⚓︎
float GetLineHeightModifier ( )⚓︎
Get·Max·Characters ()⚓︎
int GetMaxCharacters ( )⚓︎
Get·Missing·Character·Override ()⚓︎
int GetMissingCharacterOverride ( )⚓︎
Is·Auto·Wrap·Enabled ()⚓︎
boolean IsAutoWrapEnabled ( )⚓︎
Is·Truncation·Enabled ()⚓︎
boolean IsTruncationEnabled ( )⚓︎
Set·Alignment ()⚓︎
void SetAlignment ( DrawStringAlignment alignment )⚓︎
Set·Line·Height·Modifier ()⚓︎
void SetLineHeightModifier ( float value )⚓︎
Set·Max·Characters ()⚓︎
void SetMaxCharacters ( int maxChars )⚓︎
Set·Missing·Character·Override ()⚓︎
void SetMissingCharacterOverride ( int character )⚓︎
Sets the character that will be used when a character missing in the font is attempted to be rendered. This overrides previous Font:SetMissingCharacter() settings.
Last update:
December 9, 2024