Opened 18 years ago
Closed 18 years ago
#10974 closed defect (fixed)
BUG: graphviz-2.8 should depend on urw-fonts
Reported by: | cssdev | Owned by: | cssdev |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | gwright@… | |
Port: |
Description
Graphviz generates an error if it cannot locate a font using fontconfig:
$ dot -v -o test.png -T png test.dot The plugin configuration file: /opt/local/lib/graphviz/config was successfully loaded. render : canon cmap cmapx dia dot fig gd gd2 gif hpgl imap ismap jpeg jpg mif mp pcl pic plain plain-ext png ps ps2 svg svgz vrml vtx wbmp xdot layout : circo dot fdp neato nop nop1 nop2 twopi textlayout : device : usershape : png-gd Error: test.dot:3: syntax error near line 3 context: >>> ; <<< dot: fontname=Times-Roman fontpath=[internal times] network simplex: 3 nodes 2 edges 0 iter 0.00 sec mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0 mincross test123: 0 crossings, 0.00 secs. network simplex: 5 nodes 4 edges 0 iter 0.00 sec routesplines: 2 edges, 6 boxes 0.00 sec dot: allocating a 20K PaletteColor GD image Error: fontconfig: Didn't find expected font family. Perhaps URW Type 1 fonts need installing? : Times-Roman
In order to avoid this error, the urw-fonts must be installed. Graphviz will then use those font files.
- https://mailman.research.att.com/pipermail/graphviz-interest/2005q2/002397.html
- http://www.graphviz.org/bugs/b588.html
- http://www.graphviz.org/Download_source.php
This might be a bug with fontconfig not properly finding any of the other various Times fonts available on Mac OS X, but installing urw-fonts seems the easiest fix (other than manually changing the default font.)
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Add run dependency on urw-fonts port.