]> granicus.if.org Git - graphviz/commitdiff
Fix bug in which Times-Bold is mapped to timesb, rather than timesbd.
authorerg <devnull@localhost>
Thu, 24 Feb 2005 19:12:12 +0000 (19:12 +0000)
committererg <devnull@localhost>
Thu, 24 Feb 2005 19:12:12 +0000 (19:12 +0000)
lib/common/gdtextsize.c

index d7378ef1f679be94ad2acc6847ac394f1eab6ebc..661b8eea549e3c6cb7ae436eface0422d2643239 100644 (file)
@@ -44,8 +44,9 @@ char *gd_alternate_fontlist(char *font)
 
     fontlist = fontbuf;
     if ((strcasecmp(font, "times-bold") == 0)
+       || (strcasecmp(fontbuf, "timesbd") == 0)
        || (strcasecmp(fontbuf, "timesb") == 0))
-       fontlist = "timesb;Timesb;TIMESB";
+       fontlist = "timesbd;Timesbd;TIMESBD;timesb;Timesb;TIMESB";
 
     else if ((strcasecmp(font, "times-italic") == 0)
             || (strcasecmp(fontbuf, "timesi") == 0))