flipping text that uses ofTrueTypeFont


I’m having some difficulty flipping truetype text; I’m trying to flip it both horizontally and vertically. I tried to put the drawString function with a glScaled between a PushMatrix() and a PopMatrix(), but I’m not having luck. Has anyone else flipped text?


Hmm i would do the same as you… What do you exactly write, and what is the result?


Well, this is what I’m doing at the moment, but i can’t seem to position the text wherever i’d like. not quite sure what the logic is behind placement:

glTranslated(0, 280, 0);  
  font2.drawString(someText, 0, 700);  
  glCopyPixels(0,0,1024,768, GL_COLOR);  
   glPixelZoom(-1.0f, -1.0f); // flip image horizontally & vertically  

any ideas?

This is what i would do:

glTranslatef(100, 100, 0); //Here you move the text  
glScalef(-1.0, -1.0, 1.0);  
font2.drawString(someText, 0,0);  

you are an angel! thank you!