<div dir="ltr"><div dir="ltr">Hi Hossein,</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 25, 2023 at 9:59 PM Hossein Nourikhah <<a href="mailto:hossein@libreoffice.org">hossein@libreoffice.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I have studied some of the bugs from the svgio module of LibreOffice. As <br>
described in the svgio/README.md, "svgio module uses sax for reading xml <br>
and turns it into drawinglayer primitives. The rendering is done via <br>
drawinglayer primitives".</blockquote><div><br></div><div>As you say - SVG is turned into drawinglayer primitives, so we keep the SVG in a vector graphic form and can - if needed - transform that into another vector graphic format (EMF for example). If you want to implement it with Skia, you also have to import it into drawinglayer primitives and not render the vector graphic into a bitmap (like we do for example with "PDF as an image", where we render the PDF into a bitmap, which has major flaws). This is IMHO not that easy to achieve and not sure if skia supports that (it probably is possible to convert into skia internal vector representation and convert that to drawing layer primitives). <br></div><div><br></div><div>The only place where rendering the SVG to a bitmap would be useful is for icons, but then I have always said - why spend time on integrating another SVG library instead of fixing svgio instead...</div><div><br></div><div>Tomaž<br></div></div></div>