nealmcb
nealmcb

Reputation: 13481

How do you set the HTML font size in graphviz?

Graphviz allows labels to be specified via "HTML-Like labels", as shown e.g. in section 2.3 of the Drawing graphs with dot User's Guide.

That gives examples of how to change the font color, but specifying

<FONT SIZE="8">text</FONT>

results in an error message

Warning: Illegal attribute SIZE in <FONT> - ignored

How can the font size of "HTML-Like" labels be manipulated?

Upvotes: 10

Views: 5059

Answers (1)

nealmcb
nealmcb

Reputation: 13481

The term "HTML-Like labels" reflects the fact that a full HTML implementation is not included, and the syntax varies from HTML at times. For details see the documentation on Node Shapes | Graphviz - Graph Visualization Software.

There you will see that font sizes can be specified via the "POINT-SIZE" attribute. E.g.

 <FONT POINT-SIZE="8">text</FONT>

Upvotes: 14

Related Questions