Graphviz bold font attribute

萝らか妹 提交于 2020-01-12 07:25:28

问题


I would like to change font attribute as the example below

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.


回答1:


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 >]



回答2:


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

https://lingojam.com/BoldTextGenerator



来源:https://stackoverflow.com/questions/30194104/graphviz-bold-font-attribute

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!