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

Asked by Jim F

Could we force 0.92 to use 90dpi 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?

Question information

Language:
English Edit question
Status:
Invalid
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
johnc
Solved:
Last query:
Last reply:
Revision history for this message
Hachmann (marenhachmann) said :
#1

I don't expect that that will work - there have been a lot of changes under the hood. But this is a question that you'd better ask on the inkscape-devel IRC channel or on the inkscape-devel mailing list.

See https://inkscape.org/en/community/discussion/ and https://inkscape.org/en/community/mailing-lists/

Revision history for this message
Jim F (jimbox13) said :
#2

Just adding a comment - I did not get an answer about how the units.xml file is used at runtime. Except 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.

Revision history for this message
Hachmann (marenhachmann) said :
#3

I didn't see any message on the development mailing list. Did you try?

Else, you could download the source code and investigate a bit. It's probably not too difficult to search for the file name and see where it is used.

Revision history for this message
Jim F (jimbox13) said :
#4

I chatted with "Mc" on the chat irc.

Revision history for this message
Jim F (jimbox13) said :
#6

I disagree that this is an ivalid question. It has han answer. No one seems able to answer it. I may try to download the source and check myself but that will take some time.

Revision history for this message
Hachmann (marenhachmann) said :
#7

That was a spammer, Jim. There are many of them, marauding in the answers section.

Revision history for this message
Jim F (jimbox13) said :
#8

ok 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?

Help?

Revision history for this message
Jim F (jimbox13) said :
#9

(Hachmann can you restore the status from invalid to what it was before?)

Revision history for this message
Hachmann (marenhachmann) said :
#10

Sorry, I can't, Jim :-(

But I've created a question for it in launchpad's own answers section (https://answers.launchpad.net/launchpad/+question/521118).

I'm very sure that there are people who know. But they don't visit here. You'll need to sit in the chat for some time, patiently, or post a message to the developer mailing list.

Kind Regards,
 Maren