Text#
Contains functions related to text rendering.
Access with Text->
.
Functions#
int |
StringWidth(char32[] s, int font) |
int |
CharWidth(char32 c, int font) |
int |
StringHeight(char32[] s, int font) |
int |
CharHeight(char32 c, int font) |
int |
FontHeight(int font) |
int |
MessageWidth(int msg) |
int |
MessageHeight(int msg) |
Function descriptions#
int StringWidth(char32[] s, int font) 🔗 Source
Returns the width of the string s
in the given font
, as
Screen->DrawString() would draw it.
int CharWidth(char32 c, int font) 🔗 Source
Returns the width of the character c
, in the given font,
as Screen->DrawString() would draw it.
int StringHeight(char32[] s, int font) 🔗 Source
Returns the height of the string s
in font
, in pixels.
int CharHeight(char32 c, int font) 🔗 Source
Returns the height of the character c
in font
, in pixels.
int FontHeight(int font) 🔗 Source
Returns the height of font
, in pixels.
int MessageWidth(int msg) 🔗 Source
Returns the width of the messagedata msg
, as Screen->DrawString()
would draw it.
int MessageHeight(int msg) 🔗 Source
Returns the height of the font assigned to the msg
messagedata.