title: JOGL glut text not resizing with window and primitives
body: <p>I'm currently exploring opengl through the use of the JOGL library (the java wrappers for openGL) which I'm using to create 2d/3d graphs. At the minute I'm having a little issue with text I've rendered through the "glutBitmapString" method, it isn't resizing in respect of the window as shown in the screenshot below. Unfortunately the job spec I've been given is that this must be done in Java, so I can't jump to any other language that has a better supported version of openGL.</p>
  
  <p>Everything else in the window resizes correctly so I'm assuming the issue is in the code I've posted below, if not then I'll be happy to post code you feel is relevant to the issue.</p>
  
  <p><img src="https://i.stack.imgur.com/wU9tB.png" alt="The default window size"></p>
  
  <p><img src="https://i.stack.imgur.com/w3fGJ.png" alt="The resized window"></p>
  
  <p>Here is a snippet of my code I'm using to render the text</p>
  
  <pre><code>GL gl = drawable.getGL();
      GLUT glut = new GLUT();
  
      float textPosx = -0.4f;
      float textPosy = -2.1f;
  
      gl.glColor3f(1.0f, 0.0f, 0.0f);
  
      // Move to rastering position
      gl.glRasterPos2f(textPosx, textPosy);
  
      // convert text to bitmap and tell what string to put
      glut.glutBitmapString(GLUT.BITMAP_HELVETICA_12, "0");
  
      textPosx = 1.75f;
      textPosy = -2.15f;
  
      // Move to rastering position
      gl.glRasterPos2f(textPosx, textPosy);
  
      // convert text to bitmap and tell what string to put
      glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, "TIME");
  
      textPosx = -1.0f;
      textPosy = 1.0f;
  
      gl.glColor3f(0.0f, 1.0f, 0.0f);
  
      // Move to rastering position
      gl.glRasterPos2f(textPosx, textPosy);
  
      // convert text to bitmap and tell what string to put
      glut.glutBitmapString(GLUT.BITMAP_HELVETICA_18, "ERRORS");
  </code></pre>