From: daid303 Date: Wed, 16 Jan 2013 10:24:17 +0000 (+0100) Subject: Use better font rending for the X/Y/Z X-Git-Tag: 13.03~104 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=80c35c57ee044b6f5f453bebde1170e0876ebd16;p=cura.git Use better font rending for the X/Y/Z --- diff --git a/Cura/gui/util/opengl.py b/Cura/gui/util/opengl.py index 9e009ca2..37a4c54e 100644 --- a/Cura/gui/util/opengl.py +++ b/Cura/gui/util/opengl.py @@ -212,12 +212,8 @@ def DrawMachine(machineSize): glPushMatrix() glTranslate(23, 0, 0) noZ = ResetMatrixRotationAndScale() - glBegin(GL_LINES) - glVertex3f(-0.8, 1, 0) - glVertex3f(0.8, -1, 0) - glVertex3f(0.8, 1, 0) - glVertex3f(-0.8, -1, 0) - glEnd() + glRasterPos2f(-2,-2) + glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('X')) glPopMatrix() #Y @@ -225,12 +221,8 @@ def DrawMachine(machineSize): glPushMatrix() glTranslate(0, 23, 0) ResetMatrixRotationAndScale() - glBegin(GL_LINES) - glVertex3f(-0.8, 1, 0) - glVertex3f(0.0, 0, 0) - glVertex3f(0.8, 1, 0) - glVertex3f(-0.8, -1, 0) - glEnd() + glRasterPos2f(-2,-2) + glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('Y')) glPopMatrix() #Z @@ -239,16 +231,8 @@ def DrawMachine(machineSize): glPushMatrix() glTranslate(0, 0, 23) ResetMatrixRotationAndScale() - glBegin(GL_LINES) - glVertex3f(-0.8, 1, 0) - glVertex3f(0.8, 1, 0) - glVertex3f(0.8, 1, 0) - glVertex3f(-0.8, -1, 0) - glVertex3f(-0.8, -1, 0) - glVertex3f(0.8, -1, 0) - glEnd() - glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, 64) - glutStrokeCharacter(GLUT_STROKE_ROMAN, 64) + glRasterPos2f(-2,-2) + glutBitmapCharacter(GLUT_BITMAP_HELVETICA_18, ord('Z')) glPopMatrix() glPopMatrix()