Class "FontRenderSettings"⚓︎
Info
此类在 Repentance+ 版本中新增,用于 Font:DrawString() 函数中定义文本渲染的特殊行为。
可以通过其构造函数访问该类:
Example Code
1 | |
Constructors⚓︎
FontRenderSettings ()⚓︎
FontRenderSettings FontRenderSettings ( )⚓︎
返回一个 FontRenderSettings 对象。
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 )⚓︎
设置当需要渲染的字符缺失时所用的默认字符。此设置会覆盖之前的 Font:SetMissingCharacter() 配置.
Last update:
February 14, 2026