Class "Font"
Constructors
Font () {: aria-label='Constructors' }
void Font ( void ) {: .copyable aria-label='Constructors' }
local f = Font() -- init font object
f:Load("font/terminus.fnt") -- load a font into the font object
f:DrawString("Hello World!",60,50,KColor(1,1,1,1),0,true) -- render string with loaded font on position 60x50yFunctions
DrawString () {: aria-label='Functions' }
void DrawString ( string String, float PositionX, float PositionY, KColor RenderColor, u_int BoxWidth, boolean Center ) {: .copyable aria-label='Functions' }
DrawStringScaled () {: aria-label='Functions' }
void DrawStringScaled ( string String, float PositionX, float PositionY, float ScaleX, float ScaleY, KColor RenderColor, u_int BoxWidth, boolean Center ) {: .copyable aria-label='Functions' }
DrawStringScaledUTF8 () {: aria-label='Functions' }
void DrawStringScaledUTF8 ( string String, float PositionX, float PositionY, float ScaleX, float ScaleY, KColor RenderColor, u_int BoxWidth, boolean Center ) {: .copyable aria-label='Functions' }
DrawStringUTF8 () {: aria-label='Functions' }
void DrawStringUTF8 ( string String, float PositionX, float PositionY, KColor RenderColor, u_int BoxWidth, boolean Center ) {: .copyable aria-label='Functions' }
GetBaselineHeight () {: aria-label='Functions' }
u_int GetBaselineHeight ( ) {: .copyable aria-label='Functions' }
GetCharacterWidth () {: aria-label='Functions' }
u_int GetCharacterWidth ( char Character ) {: .copyable aria-label='Functions' }
GetLineHeight () {: aria-label='Functions' }
u_int GetLineHeight ( ) {: .copyable aria-label='Functions' }
GetStringWidth () {: aria-label='Functions' }
u_int GetStringWidth ( string String ) {: .copyable aria-label='Functions' }
GetStringWidthUTF8 () {: aria-label='Functions' }
u_int GetStringWidthUTF8 ( string String ) {: .copyable aria-label='Functions' }
IsLoaded () {: aria-label='Functions' }
boolean IsLoaded ( ) {: .copyable aria-label='Functions' }
Load () {: aria-label='Functions' }
boolean Load ( string FilePath ) {: .copyable aria-label='Functions' }
SetMissingCharacter () {: aria-label='Functions' }
void SetMissingCharacter ( u16 MissingCharacter ) {: .copyable aria-label='Functions' }
Unload () {: aria-label='Functions' }
void Unload ( ) {: .copyable aria-label='Functions' }
Last updated
Was this helpful?