Closed GoogleCodeExporter closed 9 years ago
I think this is a problem in the gd package rather than mscgen itself.
Assuming you wish to use this font, please ensure you are using the latest
libgd and then try reporting to the gd project here:
https://bitbucket.org/pierrejoye/gd-libgd/issues
Alternatively as a workaround you could use EPS or SVG output from mscgen, thus
avoiding use of Freetype fonts.
Please reopen if mscgen does need changing.
Original comment by Michael....@gmail.com
on 21 Jul 2012 at 6:14
I encountered the same error message as the reporter. In my case the issue
seems to be that the default font when mscgen is configure'd --with-freetype is
"helvetica", while on my system (Gentoo Linux) there is "Helvetica" with a
capital H.
I can change the default via MSCGEN_FONT and in src/main.c to "Helvetica" to
get the expected result. Of course changing src/main.c likely breaks all other
systems... So I'm unsure of the proper fix.
As a workaround I disable use of freetype, which avoids the problematic
default. (gentoo users disable the 'truetype' use flag for this package only).
$ grep -i helvetic src/main.c
snprintf(gOutputFont, bufLen, "helvetica");
$ fc-list |grep -i helvetica
Helvetica:style=Oblique
...
Versions:
libgd - 2.0.35-r3
freetype - 2.4.11
fontconfig - 2.8.0-r1
Original comment by mdavidsa...@gmail.com
on 23 Jun 2013 at 10:07
Original issue reported on code.google.com by
hank.d...@gmail.com
on 25 Jun 2012 at 10:19