我使用doxygen + graphviz来记录我的代码.graphviz在生成图像方面做得很好.
有没有办法更改graphviz的默认fontsize?默认值为14,但我想使用12代替.
更改单个元素(如节点,子图,边缘等)的字体大小真是太痛苦了.
更新:
这里参考的是我在doxygen中使用的代码,(文本字段已经重命名,当然)
@dot
strict digraph {
node [shape = box, fontsize = 12];
subgraph cluster_main {
fontsize = 12;
shape = box;
label = "main";
subgraph cluster_main_common {
fontsize = 12;
shape = box;
label = "common";
subgraph cluster_main_common_source {
fontsize = 12;
shape = box;
label = "source"
subgraph cluster_file1 {
fontsize = 12;
shape = box;
label = "file1.c";
gSystem [label = "var1" URL = "\ref var1"];
}
subgraph cluster_file2 {
fontsize = …Run Code Online (Sandbox Code Playgroud)