ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* SVG text clipping issue
@ 2022-06-29 18:52 Thangalin via ntg-context
  0 siblings, 0 replies; only message in thread
From: Thangalin via ntg-context @ 2022-06-29 18:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thangalin


[-- Attachment #1.1: Type: text/plain, Size: 1220 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2110 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-29 18:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29 18:52 SVG text clipping issue Thangalin via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).