ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* SVG path conversion misalignment
@ 2022-09-11 17:37 Thangalin via ntg-context
  0 siblings, 0 replies; only message in thread
From: Thangalin via ntg-context @ 2022-09-11 17:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Thangalin


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

Hi there,

% SOT
\startbuffer[dna]
<svg><rect width="13.305" height="20.079" x="-21.056" y="139.358"
rx="6.058" ry="6.652" transform="rotate(-90)"/><path fill="#aeaeae"
d="M154.143 8.016v12.776c2.952-.672 5.143-3.266 5.143-6.388
0-3.123-2.19-5.717-5.143-6.388z"/></svg>
\stopbuffer

\starttext
  \placefigure{}{\includesvgbuffer[dna][conversion=mp]}
\stoptext
% EOT

In the PDF that's generated, the curve of the gray semi-circle is malformed
with respect to the blackground. It's like there's a small chip. The
expected result is shown here:

https://i.ibb.co/n7s8GPT/dna.png

Looks like a small precision error in some of the pathing or
transformation/rotation calculations.

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

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

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

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

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

only message in thread, other threads:[~2022-09-11 17:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-11 17:37 SVG path conversion misalignment 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).