Bug 412070

Summary: [vector layers] Issue with dpi at export
Product: [Applications] krita Reporter: David REVOY <info>
Component: Layers/VectorAssignee: Tiar <tamtamy.tymona>
Status: RESOLVED DUPLICATE    
Severity: normal CC: griffinvalley, halla, jabier.arraiza, tamtamy.tymona
Priority: NOR    
Version: 4.2.6   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: ^ screenshot of the bug: Krita and Inkscape side by side.

Description David REVOY 2019-09-19 17:50:18 UTC
Created attachment 122735 [details]
^ screenshot of the bug: Krita and Inkscape side by side.

Hi! I started a thread about "SVG text cross compatibility between Krita and Inkscape" (full story on Inkscape bug tracker: https://gitlab.com/inkscape/inkscape/issues/425 ), and we found that Krita was exporting the SVG with a issue on dpi. In fact, Firefox and Inkscape can't both open the exported file without displaying the font smaller.

To reproduce:
=============
1. Get the Krita file:
$ wget https://gitlab.com/inkscape/inkscape/uploads/1789e8b0c481a7ee53ba3d3e9d46b433/01_Krita-vector-artwork.kra
2. Open it and export as SVG (Layer → Import/Export → Save Layer as SVG)
3. Open the resulting SVG in Firefox or Inkscape and compare.

Result:
=======
The font is smaller while the line-height is ok.
Comment 1 Jabiertxof 2019-09-19 23:25:57 UTC
Also maybe is better handle new line with "y" propery instead "dy", usualy used to offset DX/DY subsets of a line (in inkscape)
Comment 2 Halla Rempt 2019-09-28 08:40:56 UTC
But that wouldn't change the font size, would it?
Comment 3 wolthera 2019-10-07 15:43:58 UTC
(In reply to Boudewijn Rempt from comment #2)
> But that wouldn't change the font size, would it?

DPI might affect how the font size is handled if we're storing fonts in points(which we are most of the time)

Either how, checked and can confirm with inkscape and firefox.
Comment 4 Tiar 2020-10-05 12:28:37 UTC
I'm pretty sure this is a duplicate of bug 404011. Please reopen if it doesn't sound so to you.

*** This bug has been marked as a duplicate of bug 404011 ***
Comment 5 David REVOY 2020-10-06 09:22:45 UTC
@Tymond: Yep, it looks good to me. Thanks for the triage: the text-size (and so, placement) between Krita and Inkscape was the focus of this bug.