graphviz中组合变音符号的垂直对齐

时间:2018-08-23 22:05:40

标签: unicode graphviz dot

我有以下最小点代码:

digraph {
    charset = utf8;
    rankdir = LR;
    "ε" -> "V" [label="V:V"];
    "ε" -> "ε" [label="C:C"];
    "V" -> "V" [label = "C:C"];
    "V" -> "ε" [label = "V:V́ "];
}

请注意,最后一行中的最后一个V后面是一个尖锐的变音符号(已与我的编辑器FWIW中的V正确结合了)。调用V之后,该变音符号在dot -Tpdf foo.dot -o foo.pdf上显得不够高。相反,如下所示,它被覆盖了:

Digraph with one V having a misaligned acute accent

该如何解决?我在Ubuntu(xenial)上使用的是2.38.0版。

1 个答案:

答案 0 :(得分:1)

我认为这已经可行。如果仔细观察图像,您会看到变音符号:

enter image description here

我认为只是需要更改的字体。关于Graphviz: change font for the whole graph?,我修改了您的点代码并添加了字体:

digraph {
    graph [fontname = "helvetica"];
    node [fontname = "helvetica"];
    edge [fontname = "helvetica"];

    charset = utf8;
    ...

这就是我得到的:

enter image description here