Comment 99 for bug 1389723

Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

I've just checked into trunk internal code to do scaling. This would be a replacement for dpiswitcher (for 90->96). Please test!

Advantages of Internal code:

 * The additional code is only about 12 lines long (duplicated two places).
 * It relies on Inkscape's 'ungroup' function which is well tested and handles text-on-path and clones correctly.

Disadvantage:

  * Can't be easily updated by user.

I've also added code to handle 3d boxes. This code is also needed for handling legacy files that are not scaled. There is one small problem, the boxes are not updated on the screen until they are selected by the 3D box tool. I don't know how to fix this at the moment. (Any ideas?)

I've also updated many of my test files to include clones (and clones of clones), text-on-a-path, and clipping. The update files can be found at:

  http://tavmjong.free.fr/INKSCAPE/UNITS/

The internal scaling routine doesn't handle correctly the rectangle in the test files that is defined using percentage width/height. As Inkscape never creates shapes with percentage lengths this should not be a problem.