Hello,
Im working on a small graphics routine and I am adding labels to the measured features. Ive got the text rendering properly so that it always faces the user but if I zoom in and zoom out the text spacing getts ruined. If I zoom out the space between the lines of text gets bigger and when I zoom in smaller. The text itself stays the same size ( which is what I want) Im sure there is a simple fix but I cant figure it out

Thanks in advance

-Derrek

void C3DRender:rawPointLabels(double x, double y, char * name)
{
char buffer[100], x_buffer[100],y_buffer[100], units[10];
if( !bShowLabels ) {
return;
}
// draw the callout line
double x_offset = x + 0.2;
double y_offset = y + 0.2;
// draw the callout text
glColor3ub(0,0,0);
glRasterPos2d(x_offset,y_offset);
unsignedint i;
for( i = 0; i < strlen(name); i++ )
{
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_12, name[i]);
}
glRasterPos2d(x_offset, y_offset - 0.040);
in_mm_res_to_string(x_buffer, x, units);
sprintf(buffer, "X: %s %s", x_buffer, units);
for( i = 0; i < strlen(buffer); i++ )
{
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_12, buffer[i]);
}

glRasterPos2d(x_offset, y_offset - 0.080);
in_mm_res_to_string(y_buffer, y, units);
sprintf(buffer, "Y: %s %s", y_buffer, units);
for( i = 0; i < strlen(buffer); i++ )
{
glutBitmapCharacter(GLUT_BITMAP_HELVETICA_12, buffer[i]);
}

glBegin(GL_LINES);
glVertex3d(x,y,0);
glVertex3d(x_offset,y_offset,0);
glEnd();
}