Selecting a font from the dropdown chooses the wrong font

Summary:

If you select a font from the dropdown in the toolbar, Inkscape instead applies an adjacent font, even after manually typing the name of the font. This doesn't happen if you use the Text and Font panel.

Steps to reproduce:

  • Open Inkscape.
  • Add text using the text tool (T on the keyboard).
  • Select font from the dropdown menu.

What happened?

Inkscape chose a different font from what was selected.

What should have happened?

The chosen font should've been applied.

Sample attachments:

Version info

Inkscape 1.3-alpha (1:1.2.0-alpha1+devel+202304091640+e205916a96)

    GLib version:     2.74.3
    GTK version:      3.24.34
    glibmm version:   2.66.5
    gtkmm version:    3.24.7
    libxml2 version:  2.9.14
    libxslt version:  1.1.35
    Cairo version:    1.16.0
    Pango version:    1.50.10
    HarfBuzz version: 2.7.4

    OS version:       Ubuntu 22.10