【发布时间】:2015-07-13 12:46:57
【问题描述】:
我有这张 SVG 图片:
<text
xml:space="preserve"
style="font-size:18px;font-style:normal;font-weight:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:'Arial;Sans';-inkscape-font-specification:'Arial;Sans';font-stretch:normal;font-variant:normal"
x="11.764346"
y="192.01521"
id="text3607"
sodipodi:linespacing="125%"><tspan
sodipodi:role="line"
id="tspan3609"
x="11.764346"
y="192.01521">PCI-E</tspan></text>
我使用 inkscape 在 linux 上编辑的。它使用了 Windows 上没有的字体“sans”。我想指定一个字体系列,其中包含所有主要操作系统上可用的字体,但无论我使用什么语法,它都不起作用。到目前为止,我尝试过:
- font-family:'Arial' - 适用于 Windows
- font-family:'Sans' - 适用于 linux
- font-family:'Sans,Arial' - 坏了
- font-family:'Sans;Arial' - 损坏
什么是正确的语法才能工作?我在 IE 和 Firefox 中渲染图片,似乎都有同样的问题。
这是图片的完整源代码:https://tools.wmflabs.org/paste/view/raw/c47ec7b8
【问题讨论】: