-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.GetGlyphAtlasRec
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Get glyph rectangle in font atlas for a codepoint (unicode character) NOTE: If codepoint is not found in the font it fallbacks to '?'
| Parameter | Default Value | Note |
|---|---|---|
| font | ||
| codepoint |
| Condition | Return Value |
|---|---|
| (always) | map |
// Get the atlas rectangle for the character 'A' (codepoint 65)
font = raylib.GetFontDefault
rec = raylib.GetGlyphAtlasRec(font, 65)
print rec.x, rec.y, rec.width, rec.height