[NTG-context] SVG text clipping issue

Thangalin thangalin at gmail.com
Wed Jun 29 20:52:59 CEST 2022


Text that's tight against its viewbox gets clipped:

https://i.ibb.co/BGQVzzx/text-clipped.png

Here's the code:

% SOF
\startbuffer[svg]
<svg
   width="41.806641mm"
   height="25.692665mm"
   viewBox="0 0 41.806641 25.692665"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg">
  <path
     d="m 20.90332,25.692664 v -12.4787"
     style="fill:none;fill-opacity:1;stroke:#000000;stroke-opacity:1" />
  <text
     x="-0.99609375"
     y="8.6484375"

 style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;font-family:Roboto;-inkscape-font-specification:'Roboto,
Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal"><tspan
       x="-0.99609375"
       y="8.6484375"

 style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:12px;font-family:Roboto;-inkscape-font-specification:'Roboto,
Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal">16p13.3</tspan></text>
</svg>
\stopbuffer

\starttext
   \placefigure[]{}{\includesvgbuffer[svg][conversion=mp]}
\stoptext
% EOF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20220629/15081035/attachment.htm>


More information about the ntg-context mailing list