]> granicus.if.org Git - graphviz/commitdiff
fix fontsize under zooming
authorellson <devnull@localhost>
Thu, 30 Jun 2005 20:31:18 +0000 (20:31 +0000)
committerellson <devnull@localhost>
Thu, 30 Jun 2005 20:31:18 +0000 (20:31 +0000)
lib/common/gdgen.c

index 5873f2af3e575a7e77762b82f48d3c747f64b61b..0158af32e7962ee83165752710dde2e9cb46c891 100644 (file)
@@ -590,22 +590,22 @@ static void gd_textline(point p, textline_t * line)
 
     str = line->str;
     fontlist = gd_alternate_fontlist(cstk[SP].fontfam);
-    fontsz = cstk[SP].fontsz * CompScale;
+    fontsz = cstk[SP].fontsz;
 
     switch (line->just) {
     case 'l':
        mp.x = p.x;
        break;
     case 'r':
-       mp.x = p.x - line->width * Zoom;
+       mp.x = p.x - line->width;
        break;
     default:
     case 'n':
-       mp.x = p.x - line->width * Zoom / 2;
+       mp.x = p.x - line->width / 2;
        break;
     }
     ep.y = mp.y = p.y;
-    ep.x = mp.x + line->width * Zoom;
+    ep.x = mp.x + line->width;
 
     mp = gdpt(mp);
     if (fontsz <= FONTSIZE_MUCH_TOO_SMALL) {