Skip to content

Commit da6fa1d

Browse files
committed
1 parent 50a2aff commit da6fa1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rtext.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing
13391339
int GetGlyphIndex(Font font, int codepoint)
13401340
{
13411341
int index = 0;
1342+
if (!IsFontValid(font)) return index;
13421343

13431344
#define SUPPORT_UNORDERED_CHARSET
13441345
#if defined(SUPPORT_UNORDERED_CHARSET)

0 commit comments

Comments
 (0)