issue with css font-family fallback list in Windows 10
Gtk+ 3.24.13 on Windows 10 (fully updated MSYS2 installation)
Steps to reproduce:
- In MinGw64 console, open gtk3-widget-factory
- Open Inspector
- in CSS tab put the following statement
box*
{
font-family: "sans", "monospace";
}
- in the main window, click in an empty text box
- issue: blinking text cursor is not visible. When you start typing, the cursor appears. If you click in a box with some text the cursor is visible, but if you remove all text it disappears. It is confusing because the text box seems inactive
- it happens only in Windows, no issue in Ubuntu 19.10
- Of course it happens also in real applications using Gtk3 such as Darktable
Analysis:
- The issue happens when putting multiple fonts in the font-family statement. In the example above, putting only "sans" or only "monospace" does not produce any issue.
- It happens also when all fonts specified exist
- Note that font fallback mechanism does work. In fact putting
font-family: "nonexistant", "monospace";
does fallback on monospace font, but with the side effect of invisible cursor