Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Graphviz bold font attribute

Tags:

graphviz

I would like to change font attribute as the example below

example

Is there any way to change the font of just few words inside a label instead of using the global attribute change fontname="times bold italic" ? I need to convert to png.

like image 373
Enrico Pirani Avatar asked May 12 '15 14:05

Enrico Pirani


2 Answers

You may use HTML-like labels in graphviz and define labels with partially bold text:

mynode [label=<<FONT FACE="boldfontname">bold text</FONT>>]

Or use the <B> tag:

mynode [label=< <B>bold text</B> regular text >]
like image 137
marapet Avatar answered Nov 12 '22 04:11

marapet


If you are really desperate, you could also copy&paste bold unicode strings into your graph description, for example using the following website:

https://lingojam.com/BoldTextGenerator

Apparently, this too does not work in all setups.

like image 1
Radio Controlled Avatar answered Nov 12 '22 03:11

Radio Controlled