Browse Source

Fix #4529

pull/4531/head
Ray 3 weeks ago
parent
commit
da6fa1d756
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/rtext.c

+ 1
- 0
src/rtext.c View File

@ -1339,6 +1339,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing
int GetGlyphIndex(Font font, int codepoint) int GetGlyphIndex(Font font, int codepoint)
{ {
int index = 0; int index = 0;
if (!IsFontValid(font)) return index;
#define SUPPORT_UNORDERED_CHARSET #define SUPPORT_UNORDERED_CHARSET
#if defined(SUPPORT_UNORDERED_CHARSET) #if defined(SUPPORT_UNORDERED_CHARSET)

Loading…
Cancel
Save