hironishihara / ofxTrueTypeFontUC

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

ofxTrueTypeFontUC for Android #14

Closed noyanc closed 9 years ago

noyanc commented 9 years ago
  1. Android os doesn't have a freetype2 implementation. The usage of ofxTrueTypeFontUC in Android projects needs the prebuilt freetype2 libraries to be included to the ofxTrueTypeFontUC implementation. We built these libraries for armeabi, armeabi-v7a and x86 architectures. Thanks to these prebuilts, we are now succesfully using ofxTrueTypeFontUC addon in our Android game.
  2. These methods are added to the source file: ofxTrueTypeFontUC.stringWidth(const string &str) and ofxTrueTypeFontUC.stringHeight(const string &str)
hironishihara commented 9 years ago

Thank you for your contribution.

The ofxTrueTypeFontUC addon is used in combination with openFrameworks, and openFrameworks 0.8.4 for android has included freetype2 implementation. So, I don't think that this addon should have individually freetype2 implementation.

Regarding stringWidth() and stringHeight(), I’ve not realized that these implementations are missing. I will marge it.

I’m glad to hear that this addon is used in your android game!

noyanc commented 8 years ago

Hi, it would be great if you can kindly merge stringWidth() and stringHeight() methods. Regards.

hironishihara commented 8 years ago

Hi, your commit was already merged to master 6 months ago. Thank you again, @noyanc .