我想将上标和下标添加到Inkscape text对象中的同一字符。目前,我有以下内容:

但是我希望撇号(')和0垂直对齐,这样x就有(')作为上标,0作为下标。
发布于 2020-09-22 20:56:22
您可以在零索引上使用负水平字距调整。看看右上角的红色边框字段。

文本元素的SVG将如下所示:
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.584px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.2646"
x="29.4"
y="29.48"
id="text3715"><tspan
sodipodi:role="line"
id="tspan3713"
x="29.4"
y="29.48"
style="stroke-width:0.2646"
dx="0 0 0 0 5 0 0 0 3.5">(x'<tspan
style="font-size:65%;baseline-shift:sub"
id="tspan3717"
dx="-3.5">0</tspan>,y'<tspan
style="font-size:65%;baseline-shift:sub"
id="tspan3719"
dx="-3.5">0</tspan>)</tspan></text>请注意dx="-3.5"属性。
https://stackoverflow.com/questions/63884616
复制相似问题