Graphviz点-HTML表格中的斜体文字为非斜体 [英] Graphviz dot - Italic text in HTML table is non-italic

查看:150
本文介绍了Graphviz点-HTML表格中的斜体文字为非斜体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用dot 2.26.3版本

I'm using dot version 2.26.3

以下.dot内容:

digraph html {
results [shape=none, margin=0, label=<
    <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0" CELLPADDING="4">
    <TR>
    <TD>Title</TD>
    </TR>
    <TR>
    <TD><I>Description.</I></TD>
    </TR>
    </TABLE>
>];
}

..根据文档.

dot -Tsvg filename.dot -o output/filename.svg

但是,您看到的描述是非斜体的

However, the description is non-italic as you can see:

知道为什么吗?

由于各种原因,我无法安装最新版本. 最后,我通过使用斜体字体进行了补救. 同样,您可以使用强字体作为粗体的等效字体.

I couldn't get the latest version installed for various reasons. In the end I remedied by using an italicised font. Equally, you could use a strong font as an equivalent for bold.

<TD><FONT FACE="Times-Roman">Standard.</FONT></TD>

<TD><FONT FACE="Times-Italic">In italics.</FONT></TD>

<TD><FONT FACE="Times-Bold">In bold.</FONT></TD>

推荐答案

这就是原因-从指向您提供的文档的链接:

Here's why - from the link to the documentation you provided:

粗体,斜体,下划线,下标和 上标(<B><I><U><SUB>;和>)仅在 版本 2011年10月14日之后,目前仅可通过 cairo和svg渲染器

The font markups for bold, italic, underlining, subscript and superscript (<B>, <I>, <U>, <SUB>; and <SUP>) are only available in versions after 14 October 2011, and are currently only available via the cairo and svg renderers

2.26.3版本似乎来自 2010年1月-至少在检查窗口.

Version 2.26.3 however seems to be from January 2010 - at least when checking the dates of the downloads for ubuntu or windows.

我建议升级.

这篇关于Graphviz点-HTML表格中的斜体文字为非斜体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆