Skip to content

raylib.GetGlyphInfo

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get glyph font info data 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

// Retrieve glyph metrics for the letter 'A'
font = raylib.GetFontDefault
info = raylib.GetGlyphInfo(font, 65)
print info.advanceX

Clone this wiki locally