writing text within a layer

General discussion about the Processing Layers library.

writing text within a layer

Postby cclark » Sat Oct 27, 2012 4:40 pm

Hello there,

I'm using layers to build a sort of portfolio presentation app (great library by the way).

I'm using 3 or 4 layers as background, each one running 2D sketches.

And I have an extra layer that writes text on top of the others (writes credits and explanations).
The text should be in a particular font.

The problem that I'm having, is that whenever I invoke text() within a layer, the text gets rendered in the default font, and not in the font with wich I execute loadFont();.

The text sketch works just fine on it's own, but when I convert it to a layer, it starts behaving like that.

BTW, I had to create a CustomLayer class, extending Layer, in order to add some methods that i needed in every layer.

Thanks in advance.
Cheers!
cclark
Newbie
Newbie
 
Posts: 1
Joined: Sat Oct 27, 2012 4:13 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest