Difference between revisions of "CSS96"
Jump to navigation
Jump to search
(Created page with " =Problem= Inkscape <= 0.91 uses 90px per inch. Inkscape >= 0.92 uses SVG/CSS defined 96px per inch. Work was done in 0.91 to make Inkscape produced drawings independent of...") |
(→Fix) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
Work was done in 0.91 to make Inkscape produced drawings independent of which px per inch value is used but pre 0.91 files may still depend on 90 px per inch. | Work was done in 0.91 to make Inkscape produced drawings independent of which px per inch value is used but pre 0.91 files may still depend on 90 px per inch. | ||
= | =Affected files= | ||
Files that have all the following properties: | Files that have all the following properties: | ||
Line 14: | Line 14: | ||
* Have: | * Have: | ||
** A size (SVG root width/height) expressed in non-pixel units OR | ** A size (SVG root width/height) expressed in non-pixel units OR | ||
** A size expressed in pixels that should be a fixed physical size OR | |||
** Have grids with non-pixel units OR | ** Have grids with non-pixel units OR | ||
** Have guides with non-pixel units OR | ** Have guides with non-pixel units OR | ||
Line 20: | Line 21: | ||
=Fix= | =Fix= | ||
If the a file is detected to have a problem, offer the user the | If the a file is detected to have a problem, offer the user the options: | ||
* To add a 'viewBox' that fixes the user unit to 90 px per inch. | |||
* Switch the 'width' and 'height' attributes to an appropriate unit (i.e. 'mm' for A4) | |||
* Adjust grids. | |||
* Adjust guides. | |||
Note: | |||
* A 'viewBox' should NOT be automatically added. | * A 'viewBox' should NOT be automatically added. | ||
* If a user does agree to add a 'viewBox' it should be undoable (Ctrl-Z) in case the user decides it was not appropriate. | |||
=See= | =See= |
Latest revision as of 11:53, 6 June 2016
Problem
Inkscape <= 0.91 uses 90px per inch. Inkscape >= 0.92 uses SVG/CSS defined 96px per inch.
Work was done in 0.91 to make Inkscape produced drawings independent of which px per inch value is used but pre 0.91 files may still depend on 90 px per inch.
Affected files
Files that have all the following properties:
- Pre-0.91 Inkscape files AND
- Which do not have a 'viewBox' AND
- Have:
- A size (SVG root width/height) expressed in non-pixel units OR
- A size expressed in pixels that should be a fixed physical size OR
- Have grids with non-pixel units OR
- Have guides with non-pixel units OR
- Have font sizes with non-pixel units (pt).
Fix
If the a file is detected to have a problem, offer the user the options:
- To add a 'viewBox' that fixes the user unit to 90 px per inch.
- Switch the 'width' and 'height' attributes to an appropriate unit (i.e. 'mm' for A4)
- Adjust grids.
- Adjust guides.
Note:
- A 'viewBox' should NOT be automatically added.
- If a user does agree to add a 'viewBox' it should be undoable (Ctrl-Z) in case the user decides it was not appropriate.