Hi Markus

The values are bigger in the text file, because they are 90 dpi pixel values (at least the specs say that the font size should be user coordinates, and so pixel coordinates). The values should be pixels, so the number of points is the value divided by 90 (the DPI) and times 72 (number of points per inch).

The italic loss is definitely a bug - I looked in the source code and I forgot to add that case (and bolding, and probably underlining).

Jeremy

On 03/05/2013 10:52 AM, Markus Gramer wrote:
Hi Jeremy,

I'm not sure if it can be a mismatch problem between Veusz and Inkscape.
If I export with the preferences "Editable text in svg" checked, I can
see the font size in the svg file opened with a text editor and it
already is factor 1.25 bigger. I also noticed that text looses its
italic format when exported as editable text to svg. Both effects appear
under Windows XP 32bit and Windows 7 32bit with different users i.e.
different default settings.

Markus

Am 05.03.2013 10:00, schrieb Jeremy Sanders:
On 02/27/2013 04:53 PM, Markus Gramer wrote:
Hi all,

I just exported a Veusz graph as svg to Inkscape and discovered that the
axes and tick labels did not match with the size I set within Veusz. In
my case I set them to 10 and 8 (Times New Roman) and they were exported
as 12.5 and 10, respectively. Is there anything I could have done wrong
or I should pay attention to?

Hi Markus. It's probably a DPI mismatch. Veusz exports SVG files
assuming 90 DPI.  I thought inkscape used 90 DPI, too, but perhaps
they have switched it to 72 DPI (which would explain the 1.25 size
factor difference).

As far as I know, you can't specify a DPI in an SVG file, so I'm not
sure what the correct solution is. I could add an option in the
preferences dialog for SVG DPI. I could switch the output to 72, but I
think different programs might use different values.

Jeremy



_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss


_______________________________________________
Veusz-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/veusz-discuss

Répondre à