-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GenImageFontAtlas
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Generate image font atlas using chars info NOTE: Packing method: 0-Default, 1-Skyline
| Parameter | Default Value | Note |
|---|---|---|
| glyphs | ||
| glyphRecs | ||
| fontSize | ||
| padding | ||
| packMethod |
| Condition | Return Value |
|---|---|
| (always) | map |
// Generate a font atlas image from glyph data
// (glyphs and recs are typically from raylib.LoadFontData)
glyphs = raylib.LoadFontData(fileData, 32, null, 0, 0)
recs = []
atlas = raylib.GenImageFontAtlas(glyphs, recs, glyphs.len, 32, 4, 0)