Skip to content

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 '?'

Parameters

Parameter Default Value Note
font
codepoint

Return value

Condition Return Value
(always) map

Notes

Example

// 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

Clone this wiki locally