CairoSVGでSVGからPDFへ変換使用としていますが、問題があります。
和文を含むテキストに英文フォントを設定すると、英字の部分だけがアウトライン化して出力されて、和文の部分が表示されない、もしくは化ける(豆腐状態)のです。
この問題について、何か解決策をご存じの方はいらっしゃらないでしょうか?
サンプルのSVGはこちらです。
<?xml version="1.0" encoding="utf-8"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs" height="1818.74" width="1251.86" id="10013" version="1.1"> <text id="SvgjsText3046" font-family="'Allerta Stencil',sans-serif" data-type="Text" x="0" y="0" letter-spacing="0px" line-height="1.0" pointer-events="bounding-box" font-size="72px" text-anchor="start" name="Allerta_Stencil" font-style="Regular" font-weight="400" size="72px" anchor="start" style="cursor: pointer;" weight="400"> <tspan id="SvgjsTspan3370" dy="72" x="0">これはAllerta Stencil</tspan> </text> </svg>
CairoSVGのバージョン。
$ cairosvg --version 2.2.1
関連情報等お寄せいただけると大変助かります。
よろしく御願いします。
あなたの回答
tips
プレビュー