CSS96

From Inkscape Wiki
Revision as of 08:58, 5 June 2016 by Tavmjong (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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.

Efffected 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
    • 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 option to add a 'viewBox' that fixes the user unit to 90 px per inch.

  • A 'viewBox' should NOT be automatically added.

See