Graphviz粗体字体属性 [英] Graphviz bold font attribute
本文介绍了Graphviz粗体字体属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想更改字体属性,如下面的示例
I would like to change font attribute as the example below
有什么方法可以更改label
中仅几个单词的字体,而不是使用全局属性change fontname="times bold italic"
吗?我需要转换为png.
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.
推荐答案
您可以使用类似HTML的标签在graphviz中,并使用部分加粗的文本定义标签:
You may use HTML-like labels in graphviz and define labels with partially bold text:
mynode [label=<<FONT FACE="boldfontname">bold text</FONT>>]
或使用<B>
标记:
mynode [label=< <B>bold text</B> regular text >]
这篇关于Graphviz粗体字体属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文