Opened 14 years ago

Closed 14 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@…


Graphviz generates an error if it cannot locate a font using fontconfig:

$ dot -v -o test.png -T png
The plugin configuration file:
                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: 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.

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)

patch-Portfile.diff (631 bytes) - added by cssdev 14 years ago.
Add run dependency on urw-fonts port.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by cssdev

Attachment: patch-Portfile.diff added

Add run dependency on urw-fonts port.

comment:1 Changed 14 years ago by cssdev

Resolution: fixed
Status: newclosed

Fixed in r20782.

Note: See TracTickets for help on using tickets.