vallentin / glText

Cross-platform single header text rendering library for OpenGL
zlib License
167 stars 16 forks source link

Appropriate text symbol not working #26

Open AjaxSelectButtonGames opened 3 months ago

AjaxSelectButtonGames commented 3 months ago

For some reason when I go to use ' for words like I'm it does it double for example image

I updated the glyph to include this static const char *_gltFontGlyphCharacters = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`*#=[]'@*\""; but it does it incorrectly ideas on how to solve this?

AjaxSelectButtonGames commented 3 months ago

For further context I also changed


static const char* _gltFontGlyphCharacters = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,!?-+/():;%&`*#=[]\"@'";
#define _gltFontGlyphCount 85  // Updated to reflect the new total character count```