Are the dpi values in units.xml used for SVG saving at runtime

Asked by Jim F on 2017-08-22

Could we force 0.92 to use 90dpi for SVG files just by using a copy of the "0.91" "units.xml" (from "C:\Program Files\Inkscape\share\ui\") copied into the same folder after an "0.92" install? Does the software actually use these values at runtime or is this xml only for the users to read? Could this be an easy fix for people who aren't ready to go to 96dpi because of their workflow?

By trial and error it was learned that PDF creation is affected by the units.xml values.

I would still like to know (from a definitive - not empirical - point of view) how it is used.

I downloaded the code and just as I thought a simple file search for units.xml is not enough. "units.xml" is mentioned in units.cpp, but that's just the saving of it. the class/struct that it goes into is related to "UnitTable" and it's used all over the place. I don't feel qualified to look deeper at this point.

Is it really true that on one knows for sure?

(This was question 453579 but a spammer marked the question as Invalid on 2017-03-01.)

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
2017-08-22
Last reply:
2017-08-22
Mc (mc...) said : #1

Yes, but it's not recommended.
All unit conversions within Inkscape "should" take their ratios from units.xml (and you should even be able to add units to it), and if it doesn't in some places, it's a bug

Can you help with this problem?

Provide an answer of your own, or ask Jim F for more information if necessary.

To post a message you must log in.