ofTrueTypeFont in ADT

Hi,

I’m having a little trouble with ADT with ofxUI.
When I compile the code for android tablet, it returns a “drawString(): font not allocated”
That’s very awkward because I tried that in Visual Studio and it works perfectly.

Anyone has a clue of what’s happening?

Thanks!

Same issue here! Do you have any soulution?

Haven’t tried yet, because the lack of time. But I have a clue about the possible solution. Maybe if you go to Developer Options in android you’ll have some option “Force 4x MSAA”. This option will force the use of OpenGL ES 2.0 for the android applications.
It’s just a clue!
Check that and tell me if it worked.

The option “Force 4x MSAA” has no effect.

Actually ofxgui use ttf font too and works great …

investigating …

I have tried that option and like taprik said it doesn’t work.
And yes, it’s really weird why ofxGui use ttf and the example works great and ofxUI doesn’t.

It works if you set the font for the ofxUISuperCanvas object
like
gui->setFont(“Questrial-Regular.ttf”);

But I’m still getting strange errors :
05-15 00:29:29.731: I/ofAppAndroidWindow(13071): setup
05-15 00:29:29.731: E/ofTrueTypeFont(13071): loadFontFace(): couldn’t create new face for “sans-serif”: FT_Error 1 INVALID FILENAME
05-15 00:29:29.731: E/ofTrueTypeFont(13071): loadFontFace(): couldn’t create new face for “sans-serif”: FT_Error 1 INVALID FILENAME
05-15 00:29:29.731: E/ofTrueTypeFont(13071): loadFontFace(): couldn’t create new face for “sans-serif”: FT_Error 1 INVALID FILENAME
05-15 00:29:29.731: E/ofTrueTypeFont(13071): getStringBoundingBox(): font not allocated
05-15 00:29:29.731: E/ofTrueTypeFont(13071): getStringBoundingBox(): font not allocated
05-15 00:29:30.081: I/ofAppAndroidWindow(13071): resize 1280x628

…to be continued

Hi,

I solved all my problems with openframeworks compiled code to android.
So, I installed a virtual box with Ubuntu, followed the tutorial documentation of how to use openframeworks with Android Developer Tools in Linux, and now it’s running perfectly.