diff options
| author | raysan5 <raysan5@gmail.com> | 2015-10-06 17:32:00 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-10-06 17:32:00 +0200 |
| commit | e9792ef7713d9b0066cabdc66227cb5431462797 (patch) | |
| tree | eb5e737771011f1897ecac1a0f78b708bf48afd8 /src | |
| parent | 9bf411f5805e246c790beb0556a6912f6ca33452 (diff) | |
| download | raylib-e9792ef7713d9b0066cabdc66227cb5431462797.tar.gz raylib-e9792ef7713d9b0066cabdc66227cb5431462797.zip | |
Convert to UTF-8
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -311,14 +311,14 @@ void DrawTextEx(SpriteFont spriteFont, const char *text, Vector2 position, int f if ((unsigned char)text[i] == 0xc2) // UTF-8 encoding identification HACK! { - // Support UTF-8 encoded values from [0xc2 0x80] -> [0xc2 0xbf](¿) + // Support UTF-8 encoded values from [0xc2 0x80] -> [0xc2 0xbf](¿) letter = (unsigned char)text[i + 1]; rec = spriteFont.charRecs[letter - FONT_FIRST_CHAR]; i++; } else if ((unsigned char)text[i] == 0xc3) // UTF-8 encoding identification HACK! { - // Support UTF-8 encoded values from [0xc3 0x80](À) -> [0xc3 0xbf](ÿ) + // Support UTF-8 encoded values from [0xc3 0x80](À) -> [0xc3 0xbf](ÿ) letter = (unsigned char)text[i + 1]; rec = spriteFont.charRecs[letter - FONT_FIRST_CHAR + 64]; i++; |
