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 done for svg images :
external program rsvg, qt, inkscape...
But what matters is that the output is accurate, or not? The SVG spec
sets 1px = 1pt independent of the resolution. Then it's the job of
the program, like LyX (or whatever LyX is using to output SVG) to
output it correctly. And this is not done correctly.
You mean 1.25px, right? I do not say I am giving a solution. I am
thinking aloud. I do not even know what code (is it ours?) is to blame.
Yes, I meant 1.25px.
Just checked Inkscape and it converts 10pt font-size to 13.33333333px
font-size. But Libre Writer is still able to show it correctly as 12pt.
So, there must be some data in the file (attached).
Seems like I was wrong again. It seems like throughout:
Inkscape/Libre/Firefox: 1pt = 1.3333333px = 1.3333333
LyX: 1pt = 1px = 1
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.
Daniel