Number: 1357
Title: The simplest example doesn't work (Error: Could not set character size)
Submitter: Dmitry V. Krivenok
Date: Fri May 16 06:05:23 2008
Subsys: Dot
Version: dot - Graphviz version 2.18 (Fri May 16 09:30:11 UTC 2008)
System: x86-Linux-Gentoo Linux 2007.0
Severity: critical
Problem:
Please look at this simplest example:


equipment@myhost ~ $ echo '
        graph test123 {
                a -- b -- c;
                a -- {x y};
                x -- c [w=10.0];
                x -- y [w=5.0,len=3];
        }' | dot -Tpng > /dev/null
Error: Could not set character size
Error: Could not set character size
Error: Could not set character size
Error: Could not set character size
Error: Could not set character size
equipment@myhost ~ $

I got a lot of warnings! What's wrong???

The same example works fine on another server with same OS and graphviz version.


I attached two png files:
1) ok.png - png file produced by dot on another server without warnings.
2) warnings.png - png file produced by dot on target server with a
lot of warnings shown above.

Any ideas?
Comments:
[ellson] The error message comes from a gd interaction with freetype. You should probably recheck the installation of gd, freetype and fontconfig first.

The other question is why is dot not using pango, cairo, which it should be in preference to gd. Can you recheck those installs too, then rebuild graphviz.

If you still have problems, please send me a copy of your config.log
Owner: *
Status: *