ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* SVG text alignment issue
@ 2022-06-28  6:07 Thangalin via ntg-context
  2022-06-29  2:35 ` Aditya Mahajan via ntg-context
  0 siblings, 1 reply; 7+ messages in thread
From: Thangalin via ntg-context @ 2022-06-28  6:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thangalin


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

In the following example, the line and text should be aligned to the
middle  when LMTX converts the SVG figure using MP. (Note that you may have
to install Roboto, but the font isn't the issue.)

% SOF
\startbuffer[svg]
<svg
   width="25mm"
   height="70mm"
   viewBox="0 0 25 70"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg">
  <path
     d="m 12.500001,63.971412 v -12.4787"
     id="path2"
     style="fill:none;fill-opacity:1;stroke:#000000;stroke-opacity:1" />
  <text
     x="-48.831322"
     y="15.60547"
     id="text4933-8-6"
     transform="rotate(-90)"

 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
       id="tspan159594-1"
       x="-48.831322"
       y="15.60547"

 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: 2086 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] 7+ messages in thread

end of thread, other threads:[~2022-06-30  2:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28  6:07 SVG text alignment issue Thangalin via ntg-context
2022-06-29  2:35 ` Aditya Mahajan via ntg-context
2022-06-29  4:55   ` Thangalin via ntg-context
2022-06-29  7:03   ` Hans Hagen via ntg-context
2022-06-29 18:48     ` Thangalin via ntg-context
2022-06-29 21:23       ` Hans Hagen via ntg-context
2022-06-30  2:49         ` 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).