Inkscape 1.3 is missing the sans-serif font alias

Summary:

Old files created by 1.2.x have text with a font specified as 'sans-serif' but 1.3 says that doesn't exist with a warning triangle.

Steps to reproduce:

  • Create or find an old document with 1.2.x that has editable text with the font set to 'sans-serif'
  • Open said document with Inkscape 1.3
  • Edit text, note font has a triangle next to it
  • Change font to 'Sans', see triangle goes away

What happened?

The UI says 'sans-serif' is not recognized (warning triangle in the font dropdown).

What should have happened?

It should be a recognized keyword, as support was added for 'sans-serif' in a prior version to match what CSS recognizes, iirc.

Obviously this is low-priority since it defaults to the same font as Sans (at least on Windows), but hopefully it's also easy to add back. 🙂

Version info


Inkscape 1.3 (0e150ed6c4, 2023-07-21)

    GLib version:     2.76.4
    GTK version:      3.24.38
    glibmm version:   2.66.6
    gtkmm version:    3.24.7
    libxml2 version:  2.11.4
    libxslt version:  1.1.38
    Cairo version:    1.17.7
    Pango version:    1.50.14
    HarfBuzz version: 8.0.1

    OS version:       Windows 10 22H2