15

I wonder if it is possible to use different font sizes in the same label. If so, could any provide me with example?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Erhnam
  • 901
  • 2
  • 13
  • 23

1 Answers1

32

Yes this is possible using HTML-Like labels.

Here's a simple example:

digraph g{
    a[label=<
        <FONT POINT-SIZE="20">Bigger</FONT>
         and 
        <FONT POINT-SIZE="10">Smaller</FONT>
    >];
}

Output:

graphviz label with different fontsizes

stmoebius
  • 662
  • 11
  • 30
marapet
  • 54,856
  • 12
  • 170
  • 184