Note
v1 won’t be developed further. See v2 for current work.
Draw Unicode text in GameMaker 8.2, with high performance and rich features.
Warning
Minimum system requirement: Windows 10, Version 1903.
- Install Visual Studio 2026 with MSVC Build Tools for x64/x86 Preview.
- Install vcpkg.
vcpkg install wil:x86-windows.- Build clang-format 24 from LLVM if formatting is needed.
generate_font(font_path, sprite_path, font_size, charset, dense, smoothing, fill, stroke_width, stroke_fill, shadow_offset, shadow_fill)
Generate a font from font files.
Add a font generated by tools/utils.
| Returned Value | Description |
|---|---|
1 |
Font already exists |
0 |
OK |
-1 |
Failed to open glyph data file |
-2 |
Invalid glyph data header |
-3 |
Glyph data is corrupted |
-4 |
Failed to load font sprite |
-100 |
Invalid argument |
Free a font.
| Returned Value | Description |
|---|---|
1 |
Font not found |
0 |
OK |
Free all fonts.
Draw a UTF-8 text.
| Returned Value | Description |
|---|---|
0 |
OK |
-1 |
Failed to decode text |
-2 |
Failed to find line break points |
-3 |
Invalid layout option |
Get the width of the text.
| Returned Value | Description |
|---|---|
| Non-negative | Text width |
-1 |
Failed to decode text |
-2 |
Failed to find line break points |
-3 |
Invalid layout option |
Get the height of the text.
| Returned Value | Description |
|---|---|
| Non-negative | Text height |
-1 |
Failed to decode text |
-2 |
Failed to find line break points |
-3 |
Invalid layout option |
Set the current font.
| Returned Value | Description |
|---|---|
0 |
OK |
-1 |
Font not found |
Get the current font.
| Returned Value | Description |
|---|---|
| Non-empty | OK |
| Empty | Font unspecified |
gm_set_align3(halign, valign, justified)
gm_set_align(halign, valign)
gm_set_halign(halign)
gm_set_valign(valign)
gm_set_justified(justified)
Set the text alignment.
Get the text alignment.
Set the text color.
Get the text color.
Set the text alpha.
Get the text alpha.
Set the letter spacing of the text.
Get the letter spacing of the text.
Set the word spacing of the text.
Get the word spacing of the text.
Set the paragraph spacing of the text.
Get the paragraph spacing of the text.
Set the line spacing of the text.
Get the line spacing of the text.
Set the maximum line length of the text.
Get the maximum line length of the text.
Set the text offset.
Get the text offset.
Set the text scale.
| Returned Value | Description |
|---|---|
0 |
OK |
-1 |
Invalid argument |
Get the text scale.
Set the text rotation.
Get the text rotation.