Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Potential bug in ofTrueTypeFont.load() / OF 0.9.3

$
0
0

@chris_abyi wrote:

Hi everyone,

I'm running OF 0.9.3 on OSX with Xcode. In my application, I try to load a TrueTypeFont with:
1) In the header: ofTrueTypeFont fontBlack;
2) In the ofApp setup: fontBlack.load("verdana.ttf", 10, true, true, true);
with verdana.ttf in the data directory.

This gives me [ error ] ofTrueTypeFont: loadFontFace(): couldn't find font "verdana.ttf" = so loadFontFace() returns a nullptr.

Interestingly, I get the same error when building the OF example in examples/graphics/fontsExample. I didn't make any changes here (not to the code, nor to the file structure).

Is this a bug in OF or a system-specific issue on my side? Would you mind to compile the example and test?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles