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). However, LyX seems to scale the SVG so that "12pt" matches the unit-less (or pixel) size of "12" (see screenshot). That seems incorrect.

Also, is there a workaround?

Okay, a work around is to set Scale graphics (%) to 75 (=1/1.33333).

Or it might be 80 (=1/1.25)... I am not fully sure yet

Okay, it's 80, I think.

This is also what the SVG specs say for the ratio between pc and pt:

"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.

Daniel

Reply via email to