When you use Text() or TextWidth() on text that contain utf-8 characters with codepoint higher than 500, the program will crash, because you are looking outside the bounds of the character map array.
Please add the following lines in the while loop in the functions Text() and TextWidth():
When you use Text() or TextWidth() on text that contain utf-8 characters with codepoint higher than 500, the program will crash, because you are looking outside the bounds of the character map array.
Please add the following lines in the while loop in the functions Text() and TextWidth():
if(character >= MAXFONTPATH-1) { continue; }
This will prevent crashing.