flipping text that uses ofTrueTypeFont

Hello,

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?

-jackee

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

Jonas

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:

  
glPushMatrix();  
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  
glPopMatrix();  

any ideas?

This is what i would do:

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

you are an angel! thank you!