]> granicus.if.org Git - graphviz/commitdiff
*** empty log message ***
authorarif <devnull@localhost>
Mon, 3 Nov 2008 20:39:29 +0000 (20:39 +0000)
committerarif <devnull@localhost>
Mon, 3 Nov 2008 20:39:29 +0000 (20:39 +0000)
lib/glcomp/glTexFont.c

index b6a12440e23e59c346847451e55d03ca10a5996d..8358941abeb4373eb406660ba8c0d2aba548f74d 100755 (executable)
@@ -133,7 +133,7 @@ void fontScissorNormal (texFont_t* font,int xpos, int ypos, int tabs, int carrag
                sy = ypos;
                ey = size;
        }
-    glScissor (font,xpos, sy, ex, ey);
+    glScissor (xpos, sy, ex, ey);
 }
 /*
 =============
@@ -406,9 +406,9 @@ void fontWalkString (texFont_t* font,char *buffPtr, GLfloat xpos, GLfloat ypos,
 
 
 
-
+/*
                if(*buffPtr==' ')               //SPACE
-                       x = x - size;
+                       x = x + size;*/
 
                switch (*buffPtr)
                {
@@ -790,6 +790,7 @@ int add_font(fontset_t* fontset,char* fontdesc)
                        fontset->fonts=realloc(fontset->fonts,sizeof(texFont_t*)*(fontset->count+1));
                        fontset->fonts[fontset->count]=(texFont_t*)malloc(sizeof(texFont_t));
                        font_init(fontset->fonts[fontset->count]);
+                       fontset->fonts[fontset->count]->fontdesc=strdup(fontdesc);
                        glGenTextures (1, &(fontset->fonts[fontset->count]->texId));    //get  opengl texture name
                        if (fontset->fonts[fontset->count]->texId >= 0)
                        {