mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
export: fix rendering issue of non-ASCII chars in Graphviz
We use SVG format for Graphviz when exporting to PDF to avoid specifying proper font.
This commit is contained in:
parent
13c2d143bb
commit
fad6003660
@ -764,7 +764,10 @@ QString VUtils::generateHtmlTemplate(const QString &p_template,
|
||||
if (g_config->getEnableGraphviz()) {
|
||||
extraFile += "<script>var VEnableGraphviz = true;</script>\n";
|
||||
|
||||
QString format = p_isPDF ? "png" : "svg";
|
||||
// If we use png, we need to specify proper font in the dot command to render
|
||||
// non-ASCII chars properly.
|
||||
// Hence we use svg format in both cases.
|
||||
QString format = p_isPDF ? "svg" : "svg";
|
||||
extraFile += QString("<script>var VGraphvizFormat = '%1';</script>\n").arg(format);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user