Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002592graphvizOtherpublic2016-03-02 12:382016-03-03 14:16
Reporterberlingozzo 
Assigned Tonorth 
PrioritynormalSeverityimportantReproducibilityalways
StatusclosedResolutionno change required 
Platformgraphviz version 2.38.0 homebrewOSMac OSOS VersionEl Capitan
Summary0002592: Some HTML tags are ignored in node labels
DescriptionHi all,
This is my first "bug" report for Graphviz, please excuse me if I'm not accurate or my report needs improvement, and let me know.

I'm unable to get "bold" "italic" and "underline" (at least..) to work in a node label.
Other tags such as "table" are correctly interpreted.
Steps To ReproduceMinimum (not) working example:

digraph structs {
    node [shape=plaintext];
    struct1 [label=<normal underlined>];
}

the "normal" and "underlined" parts of the label appear identical. This happens also with the or tags.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.38
Attached Files? file icon html3.gv (Attachment missing)

- Relationships

-  Notes
User avatar (0001038)
erg (administrator)
2016-03-02 13:54

I'm not sure if your example got corrupted by being entered in the bug report, but as it appears, it won't work. The correct syntax is

digraph structs {
    node [shape=plaintext];
    struct1 [label=<normal underlined>];
}
User avatar (0001039)
erg (administrator)
2016-03-02 14:03

Okay, it looks like the bug report is interpreting the HTML-like labels. To be sure, please use the Upload File field above to upload your input example. Also, please give the full command with flags that you use to draw the graph. Thanks.
User avatar (0001040)
berlingozzo (reporter)
2016-03-02 14:32

I have attached a minimum working example. Note I have used bold in this example, as this is the tag I'm particular interested in.

I have tried generating the image with:
neato -Tpng -o pippo.png ~/Downloads/html3.gv
or
neato -Tpdf -o pippo.pdf ~/Downloads/html3.gv
or
dot -Tpng -o pippo.png ~/Downloads/html3.gv
and none of them works.

Note that I'm using graphviz installed via brew, from command line, not the Graphviz.app (or whatever the app is in Mac).

Thanks
User avatar (0001041)
berlingozzo (reporter)
2016-03-03 05:49

Hi
For the ones stumbling upon this bug, this workaround fixed the issue for me:

brew uninstall graphviz
brew install cairo pango graphviz --with-pangocairo

Thanks Stephen North for pointing me towards the right direction (i.e., I was missing pango, which is what applies text styles)

regards
User avatar (0001042)
erg (administrator)
2016-03-03 14:16

Most new rendering features are only done in svg and pangocairo. Is it worth the effort to, when possible, add them as well to postscript and raw quartz?

- Issue History
Date Modified Username Field Change
2016-03-02 12:38 berlingozzo New Issue
2016-03-02 13:54 erg Note Added: 0001038
2016-03-02 14:03 erg Note Added: 0001039
2016-03-02 14:32 berlingozzo File Added: html3.gv
2016-03-02 14:32 berlingozzo Note Added: 0001040
2016-03-03 05:49 berlingozzo Note Added: 0001041
2016-03-03 14:16 erg Note Added: 0001042
2016-03-03 14:16 erg Assigned To => north
2016-03-03 14:16 erg Status new => closed
2016-03-03 14:16 erg Resolution open => no change required


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