tima620のゆらぎ

「のlog.txt」を畳み、「の」が崩御し、「のはざま」をはさんだ後に生まれた「のゆらぎ」

SVGのtextのpaint-orderのアレをstroke-linejoinで解決メモ

前回の記事の最後のオレオ。testじゃなくてAとかWとか入れてみると…

A test W

なんだこのツンツンは…

stroke-linejoinでエッジ部分の描画方法決めれるみたいです。roundって丸そう。

<svg>
  <text x="50" y="100" stroke-width="15px" stroke-linejoin="round" paint-order="stroke" style="font: bold 50px Meiryo UI; stroke: black; fill: white;">
    A test W
  </text>
</svg>

A test W

オレオ感なくなったけど、トゲトゲなくなったよ。