Module System
System module.
This module contains any stuffs related to external systems such as operating system, game fonts, etc.
Data Structures
.systemFont | The system font. |
Functions
GetCharWidth (char, height) | Get a char's width size. |
Tables
System.FONT.YGO340 | YGO340 font. |
System.FONT.DFYuanW9_GB | DFYuanW9_GB font. |
System.FONT.DFLiYuan_XB | DFLiYuan_XB font. |
Fields
defaultFont | Default system font being used in-game. |
Classes
UTF8 | UTF-8 library class. |
Data Structures
- .systemFont
-
The system font.
- defaultCharWidth number The default character width.
- charWidth table The list of character width.
Functions
- GetCharWidth (char, height)
-
Get a char's width size.
Parameters:
- char string An UTF-8 character.
- height number Height size.
Returns:
-
number
Width.
Tables
- System.FONT.YGO340
-
YGO340 font.
Default font for CSO Korea, and CSNS (Nexon).
Including Basic Greek, Basic Latin, Bopomofo, CJK, Cyrillic, Hangul, Katakana, Hiragana.
Fields:
- YGO340 .systemFont
- System.FONT.DFYuanW9_GB
-
DFYuanW9_GB font.
Default font for CSO China (Tiancity).
Including Basic Greek, Basic Latin, Bopomofo, CJK, Cyrillic, Hangul, Katakana, Hiragana, Yijing.
Fields:
- DFYuanW9_GB .systemFont
- System.FONT.DFLiYuan_XB
-
DFLiYuan_XB font.
Default font for CSO Taiwan/Hong Kong (Beanfun).
Including Basic Greek, Basic Latin, Bopomofo, CJK, Cyrillic, Hangul, Katakana, Hiragana, Yijing.
Fields:
- DFLiYuan_XB .systemFont
Fields
- defaultFont
-
Default system font being used in-game.
- default .systemFont (default System.FONT.YGO340).
Classes
- UTF8
-
UTF-8 library class.
Provides UTF-8 aware string functions implemented in pure lua.
All functions behave as their non UTF-8 aware counterparts with the exception that UTF-8 characters are used instead of bytes for all units.
- UTF8 System.UTF8