Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000667graphvizDotpublic2007-02-01 03:222011-04-28 04:03
ReporterAndy Dent 
Assigned Tonorth 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Windows-XP Pro sp2OS Version
Summary0000667: SVG render default font not Times Roman
Description



dot -Tsvg -O PyFEM.dot



generates SVG with font-family:Nimbus Roman No9 L



There is no such font on my system.



A suitable standard font for Windows would be Times New Roman and it would be even better to generate with a fallback of Serif.



ie: font-family:'Times New Roman', Serif



in full context
<text text-anchor="middle" x="92" y="-174" style="font-family:'Times New Roman', Serif;font-weight:normal;font-size:14.00;">personas</text>



Failure to use a serif font causes the generic font fallback which in many cases renders very poorly as shown with the following DOT.
Steps To Reproduce

digraph untitled
    {
        graph[label="PyFEM structures and how\n accessing a PyFEM object as a sequence generates PyFEMElement objects" shapee=plaintext]
        node[shape=box ]

        element_region
        element_nodes
        elem_face_tags
        nodes
        element[style=dotted label="PyFEMElement\n groups by association of \nitems at same element index" color=blue fontcolor=blue]
        nodeIndex[shape=ellipse color=magenta fontcolor=magenta]

        PyFEM->element[label=" created by\n __getitem__ \n or __iter__" fontcolor=blue color=blue]

        // members
        edge[arrowtail=diamond]
        PyFEM->nodes
        PyFEM->element_region
        PyFEM->element_nodes
        PyFEM->elem_face_tags
        PyFEM->node_samples
        PyFEM->elem_samples[label=" directly access\n by element index" fontcolor=blue color=blue]
        PyFEM->elem_type_list

        edge[style=dotted arrowtail=none color=blue]
        element->element_region
        element->element_nodes
        element->elem_face_tags
        element->elem_type_list

        edge[color=magenta]
        nodeIndex->nodes
        nodeIndex->node_samples
        element_nodes->nodeIndex
    }
Additional Information

[ellson] >
The difficult with SVG, and with PS, is that dot needs font metrics to generate the layout, but
without guarantee that the the font found on the machine generating the layout is also available
on the machine or printer generating the rendering. The correct solution is to embed the glyphs
used during layout into the rendering so that the same fonts are used on both.

Cairo does this, so you may get better results with -Tps:cairo -Tsvg:cairo

[north]
One doesn't really know the
metrics for the SVG native fonts, so not too surprisingly inkscape
does "the right thing" to size a "serif" font but batik doesn't
and the text spills out of the boxes. I'm not sure if there
is a way to correct it. There is an SVG 'tspan' element but
the going is getting kind of heavy for a casual experiment.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1077
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (13 Feb 2007)
VERSION     2.13.20070131.0540
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => Stephen North


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker