Skip to content

raylib.GetGlyphIndex

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Get index position for a unicode character on font 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) number

Notes

Example

// Get the glyph index for the letter 'A' in the default font
font = raylib.GetFontDefault
idx = raylib.GetGlyphIndex(font, 65)
print idx

Clone this wiki locally