Skip to content

Default stroke width is not exactly 1px

Steps to reproduce:

  • Start with a fresh Inkscape installation.
  • Draw a straight horizontal line.
  • Inspect the stroke-width of the line.
  • Switch the stroke-width measurement unit from mm to px.

What happened?

  • 1,002

What should have happened?

  • 1,00000000000000000000000000000000000000000000000000000000
  • This looks like one of the many rounding errors that are typical of Inkscape.

Version info

Inkscape 1.3-beta (cedbd6c6ff, 2023-05-28)

    GLib version:     2.76.3
    GTK version:      3.24.38
    glibmm version:   2.66.6
    gtkmm version:    3.24.7
    libxml2 version:  2.10.4
    libxslt version:  1.1.38
    Cairo version:    1.17.7
    Pango version:    1.50.14
    HarfBuzz version: 7.3.0

    OS version:       Windows 11 22H2
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information