Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

P2.0b8 text doesn't appear in P2D or P3D

$
0
0
Hi

I'm porting a sketch from Processing 1.5.1 to Processing 2.0b8 in Java mode  but I'm struggling to get text to appear on the screen either with the P2D or P3D rendering mode (even with a simple sketch like the one below):  If I use anything other than the default renderer in the size() command then no fonts appear on the screen.  The problem affects fonts in the ControlP5 library too.  None of the options in the trusty textMode() command seem to help.  What should I do to get fonts to appear in anything other than the default renderer?

PFont f;                    
  
void setup() {
  size(200,200,P3D);
  f = createFont("Arial",16,true);
}

void draw() {
  background(255);
  textFont(f,16);               
  fill(0);                         
  text("Hello Strings!",10,100);  
}

Many thanks!

Viewing all articles
Browse latest Browse all 1768

Trending Articles