-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.LoadFontData
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Load font data for further use NOTE: Requires TTF font memory data and can generate SDF data
| Parameter | Default Value | Note |
|---|---|---|
| fileData | ||
| fontSize | ||
| codepoints | null | |
| codepointCount | 0 | |
| type | 0 |
| Condition | Return Value |
|---|---|
| (always) | list |
// Load glyph data from raw TTF file bytes for the ASCII printable range
fileData = file.loadRaw("resources/myfont.ttf")
glyphs = raylib.LoadFontData(fileData, 32, null, 0, 0)
print "Loaded " + glyphs.len + " glyphs"
raylib.UnloadFontData glyphs