Examples 文字関連 lengthAdjust.pxdx

文字を指定の長さに合わせる
<?xml version="1.0" encoding="utf-8"?>
<!-- 用紙サイズ「A4」用紙方向「縦」 -->
<pxd paper-type="a4" orientation="portrait" title="文字">
<page>
   <!-- 値10の時1mmになるように設定 -->
   <svg x="0" y="0" width="21cm" height="29.7cm" viewBox="0 0 2100 2970">
      
      <!-- 文の長さが12cmになるように設定 -->
      <text x="400" y="480" font-size="200" fill="black" stroke="none" textLength="1200" lengthAdjust="spacing">文字の例</text>
      
      <!-- 中心線 -->
      <line x1="400" y1="500" x2="1600" y2="500" stroke="black" stroke-width="1"/>
   </svg>
</page>
</pxd>