hironishihara / ofxTrueTypeFontUC

An extension of ofTrueTypeFont class for using UNICODE characters. Tested on OSX, iOS, and Windows.
Other
116 stars 46 forks source link

Bug fixes in loadChar() with space and '!' (-1 and 0) #11

Closed jfnet closed 9 years ago

jfnet commented 9 years ago

Bug fix with negative index when using getCharID(' ') with space. Bug fix with infinite loadChar('!'), due to index 0 means unloaded typeface. This modifications has been tested on iOS (8.1) + Xcode (6.1) + openFrameworks 0.8.4 (ios)

hironishihara commented 9 years ago

Good catch! I've merged your pull request, and additionally modified the code a little bit. Thank you for your contribution.