【问题标题】:Inkscape: how to attach superscript and subscript to the same characterInkscape:如何将上标和下标附加到同一个字符
【发布时间】:2021-01-01 04:39:09
【问题描述】:

我想为 Inkscape 文本对象中的同一个字符添加上标和下标。目前,我有这个:

但我希望撇号 (') 和 0 垂直对齐,以便 x 具有 (') 作为上标和 0 作为下标。

【问题讨论】:

    标签: inkscape subscript superscript


    【解决方案1】:

    您可以在零索引上使用负水平字距调整。查看右上角的红框字段。

    文本元素的 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" 属性。

    【讨论】:

      猜你喜欢
      • 2014-01-11
      • 1970-01-01
      • 2017-07-03
      • 2019-12-23
      • 1970-01-01
      • 2017-12-17
      • 2011-12-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多