Re: LyX SVG output size wrong

2018-09-21 Thread Daniel
On 20/09/2018 13:56, Jean-Marc Lasgouttes wrote: I think that at this point it would be a good idea to open a ticket. Ticket at https://www.lyx.org/trac/ticket/11301. Daniel

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 14:34, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 14:24, Daniel a écrit : I just tried a conversion via Inkscape which works fine. Maybe there is a way to replace the conversion via rsvg-convert with Inkscape? Inkscape is used when rsvg-convert is not available. Otherwise, you c

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 14:24, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 14:23, Daniel a écrit : On 20/09/2018 14:00, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 13:43, Daniel a écrit : No idea what my converter is. How do I find out? I just tried out online SVG to PNG converters. With Imagick the

Re: LyX SVG output size wrong

2018-09-20 Thread Jean-Marc Lasgouttes
Le 20/09/2018 à 14:24, Daniel a écrit : I just tried a conversion via Inkscape which works fine. Maybe there is a way to replace the conversion via rsvg-convert with Inkscape? Inkscape is used when rsvg-convert is not available. Otherwise, you can change it by hand in your preferences. JMarc

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 13:56, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 13:14, Daniel a écrit : On 20/09/2018 10:58, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 10:21, Daniel a écrit : This leads to the middle and right text in the attached file having different sizes in LyX while they have the same

Re: LyX SVG output size wrong

2018-09-20 Thread Jean-Marc Lasgouttes
Le 20/09/2018 à 14:23, Daniel a écrit : On 20/09/2018 14:00, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 13:43, Daniel a écrit : No idea what my converter is. How do I find out? I just tried out online SVG to PNG converters. With Imagick the result was fine. However, with another tool that (

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 14:00, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 13:43, Daniel a écrit : No idea what my converter is. How do I find out? I just tried out online SVG to PNG converters. With Imagick the result was fine. However, with another tool that (like...) used rsvg the result was the sa

Re: LyX SVG output size wrong

2018-09-20 Thread Jean-Marc Lasgouttes
Le 20/09/2018 à 13:43, Daniel a écrit : No idea what my converter is. How do I find out? I just tried out online SVG to PNG converters. With Imagick the result was fine. However, with another tool that (like...) used rsvg the result was the same as in LyX. So maybe rsvg does not handle them

Re: LyX SVG output size wrong

2018-09-20 Thread Jean-Marc Lasgouttes
Le 20/09/2018 à 13:14, Daniel a écrit : On 20/09/2018 10:58, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 10:21, Daniel a écrit : This leads to the middle and right text in the attached file having different sizes in LyX while they have the same size in other applications I tested. It looks l

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 13:39, Daniel wrote: On 20/09/2018 13:14, Daniel wrote: On 20/09/2018 10:58, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 10:21, Daniel a écrit : This leads to the middle and right text in the attached file having different sizes in LyX while they have the same size in other appl

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 13:14, Daniel wrote: On 20/09/2018 10:58, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 10:21, Daniel a écrit : This leads to the middle and right text in the attached file having different sizes in LyX while they have the same size in other applications I tested. It looks like w

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 10:58, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 10:21, Daniel a écrit : This leads to the middle and right text in the attached file having different sizes in LyX while they have the same size in other applications I tested. It looks like we do not pass any information to the

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 2018-09-20 10:58, Jean-Marc Lasgouttes wrote: Le 20/09/2018 à 10:21, Daniel a écrit : Inkscape/Libre/Firefox: 1pt = 1.333px = 1.333 This corresponds to a setting of 96dpi. But obviously the number of pixels depends on your zoom setting in firefox/libreoffice..., doesn't it? Firef

Re: LyX SVG output size wrong

2018-09-20 Thread Jean-Marc Lasgouttes
Le 20/09/2018 à 10:21, Daniel a écrit : Inkscape/Libre/Firefox: 1pt = 1.333px = 1.333 This corresponds to a setting of 96dpi. But obviously the number of pixels depends on your zoom setting in firefox/libreoffice..., doesn't it? LyX: 1pt = 1px = 1 This leads to the middle and righ

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 09:11, Daniel wrote: On 20/09/2018 00:05, Jean-Marc Lasgouttes wrote: Le 19/09/2018 à 23:54, Daniel a écrit : The link you gave assumes that everything is displayed at 90dpi (which gives the 1.25 once you know that 1pt is 1/72th of inch). I have no idea of how computations are d

Re: LyX SVG output size wrong

2018-09-20 Thread Daniel
On 20/09/2018 00:05, Jean-Marc Lasgouttes wrote: Le 19/09/2018 à 23:54, Daniel a écrit : The link you gave assumes that everything is displayed at 90dpi (which gives the 1.25 once you know that 1pt is 1/72th of inch). I have no idea of how computations are done for svg images : external progr

Re: LyX SVG output size wrong

2018-09-19 Thread Jean-Marc Lasgouttes
Le 19/09/2018 à 23:54, Daniel a écrit : The link you gave assumes that everything is displayed at 90dpi (which gives the 1.25 once you know that 1pt is 1/72th of inch). I have no idea of how computations are done for svg images : external program rsvg, qt, inkscape... But what matters is tha

Re: LyX SVG output size wrong

2018-09-19 Thread Daniel
On 19/09/2018 23:07, Jean-Marc Lasgouttes wrote: Le 19/09/2018 à 22:45, Daniel a écrit : "1pt" equals "1.25px" (and therefore 1.25 user units) https://www.w3.org/TR/SVG11/coords.html#Units The basic problem is that LyX treats 1 svg pixel as 1pt rather than 0.8pt. The link you gave assumes t

Re: LyX SVG output size wrong

2018-09-19 Thread Jean-Marc Lasgouttes
Le 19/09/2018 à 22:45, Daniel a écrit : "1pt" equals "1.25px" (and therefore 1.25 user units) https://www.w3.org/TR/SVG11/coords.html#Units The basic problem is that LyX treats 1 svg pixel as 1pt rather than 0.8pt. The link you gave assumes that everything is displayed at 90dpi (which gives

Re: LyX SVG output size wrong

2018-09-19 Thread Daniel
On 19/09/2018 21:00, Daniel wrote: On 19/09/2018 18:02, Daniel wrote: On 19/09/2018 16:55, Daniel wrote: Hi, I believe LyX outputs SVGs in the wrong size. Attached is an SVG where the right text "Test" is explicitly set to 12pt. Libre Writer shows the font-size correctly (see screenshot). Ho

Re: LyX SVG output size wrong

2018-09-19 Thread Daniel
On 19/09/2018 18:02, Daniel wrote: On 19/09/2018 16:55, Daniel wrote: Hi, I believe LyX outputs SVGs in the wrong size. Attached is an SVG where the right text "Test" is explicitly set to 12pt. Libre Writer shows the font-size correctly (see screenshot). However, LyX seems to scale the SVG s

Re: LyX SVG output size wrong

2018-09-19 Thread Daniel
On 19/09/2018 16:55, Daniel wrote: Hi, I believe LyX outputs SVGs in the wrong size. Attached is an SVG where the right text "Test" is explicitly set to 12pt. Libre Writer shows the font-size correctly (see screenshot). However, LyX seems to scale the SVG so that "12pt" matches the unit-less

LyX SVG output size wrong

2018-09-19 Thread Daniel
Hi, I believe LyX outputs SVGs in the wrong size. Attached is an SVG where the right text "Test" is explicitly set to 12pt. Libre Writer shows the font-size correctly (see screenshot). However, LyX seems to scale the SVG so that "12pt" matches the unit-less (or pixel) size of "12" (see screen