From: arif Date: Tue, 26 Feb 2008 16:43:51 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: LAST_LIBGRAPH~32^2~4692 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f08ee7d8beca45092ed9f53cf81a770b83e53cd9;p=graphviz *** empty log message *** --- diff --git a/lib/utilities/glTexFont.c b/lib/utilities/glTexFont.c index 81eac17ae..c5b0c79e7 100755 --- a/lib/utilities/glTexFont.c +++ b/lib/utilities/glTexFont.c @@ -109,20 +109,20 @@ void fontDrawChar (char c, int x, int y, int size, int shadow) glBegin (GL_QUADS); glTexCoord2f (tPoints[(int)c][0], tPoints[(int)c][1]); - glVertex2i (x, y); + glVertex3i (x, y,0); glTexCoord2f (tPoints[(int)c][0] + font.tIncX, tPoints[(int)c][1]); - glVertex2i (x + size, y); + glVertex3i (x + size, y,0); if (!shadow) glColor4fv (font.fgColor); else glColor4fv (font.bgColor); glTexCoord2f (tPoints[(int)c][0] + font.tIncX, tPoints[(int)c][1] + font.tIncY); - glVertex2i (x + size + font.italic, y + size); + glVertex3i (x + size + font.italic, y + size,0); glTexCoord2f (tPoints[(int)c][0], tPoints[(int)c][1] + font.tIncY); - glVertex2i (x + font.italic, y + size); + glVertex3i (x + font.italic, y + size,0); glEnd (); } /* @@ -243,6 +243,10 @@ void fontSize (int size) { font.size = size; } +void fontzdepth(float zdepth) +{ + font.zdepth=zdepth; +} /* ============= fontShadow