ruanpienaar / mscgen

Automatically exported from code.google.com/p/mscgen
GNU General Public License v2.0
0 stars 0 forks source link

revision 40 fails to build png/eps pictures. #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
mscgen from revision fails to builds graphs with type as "png" or "ismap";
giving the error:

Error: gdoTextHeight: Could not find/open font (GDFONTPATH=(null))

"svg" and "eps" images builds fine though.

I have tried to replace the value of the FONT macro in gd_out.c to a couple
of different fonts without luck. I cannot however figure out why it cannot
find these fonts.

On a related note, you may want to add "ifndef FONT", so it can be defined
from command-line (without it being redefined).

~Niels

Original issue reported on code.google.com by NThykier@gmail.com on 10 Jul 2009 at 1:37

GoogleCodeExporter commented 9 years ago
To get UTF8 support in PNG, I switched the trunk code to use the FreeType 
rendering.

This seems to cause some problems.  The first is that FontConfig needs to be 
setup to
correctly get fonts, or GDFONTPATH set to something.  Even if that is done, 
there
appears to be a bug in libgd whereby it can't use any fonts:

http://bugs.libgd.org/?do=details&task_id=210

I'm thinking of pulling the FreeType text since it causes problems.  The 
downside is
that FreeType does provide support for UTF8 and anti-aliasing.

Original comment by Michael....@gmail.com on 11 Jul 2009 at 1:05

GoogleCodeExporter commented 9 years ago
Fixed at r42

Original comment by Michael....@gmail.com on 11 Jul 2009 at 1:20