Solved Sway&Fonts: GIMP/Inkscape > manual enter only.

Installed via packages:
sway+inkscape+GIMP+libreoffice.
Fonts installed in:
1. ~/.config/sway/inkscape/fonts –> my fonts.
2. ~/.config/sway/GIMP/2.10/fonts –> my fonts.
3. /usr/local/share/fonts –> system fonts.
Cache updated:
$ fc-cache -rv
$ freebsd-version -kru
Code:
14.2-RELEASE-p1
14.2-RELEASE-p1
14.2-RELEASE-p3
$ sway --version
Code:
sway version 1.10.1
The screenshot explains the problem:
in LibreOffice (last version), you can select the desired font via a drop-down list.
But in GIMP and Inkscape (last versions), nothing happens when you click the drop-down list. You can select a font ONLY if you MANUALLY enter the font name: arial, europa, tahoma, etc.
The path to the fonts is specified in Inkscape itself (via the “Properties” menu of Inkscape itself):
Edit>Preferences>System>User fonts: ~/.config/sway/inkscape/fonts
Conclusion: both GIMP and Inkscape “see” the fonts, because fonts can be entered manually (by name)! Entering the desired font manually each time is good and develops memory, but it is hard to work regularly.
Is this a bug? If it's a bug, why is it immediately visible in both GIMP and Inkscape, but not in LibreCalc and LibreWrite?
Should I continue to train my memory or is there a cure for this situation?
Switching to Linux is not suggested. :)
Thanks.
 

Attachments

  • 2025-05-24_10-08-51.png
    2025-05-24_10-08-51.png
    240.5 KB · Views: 201
In GIMP it's the same: it's impossible to open the font list via the menu. It looks like a system error. There is no such thing in Krita and LibreOffice.
I installed a separate sans-serif font. The problem was not solved. See the picture for sans & sans-serif.
Surprisingly, after executing the command
$ fc-list | grep Microsoft
I see the installed sans-serif font:
Code:
/home/none/.local/share/fonts/Microsoft/TrueType/Microsoft Sans Serif/Microsoft_Sans_Serif_Regular.otf: Microsoft Sans Serif:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
/usr/local/share/fonts/OTF/Microsoft_Sans_Serif.otf: Microsoft Sans Serif:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
 

Attachments

  • sans.png
    sans.png
    22.2 KB · Views: 182
I dropped the sans-serif into the native Inkscape directory
~/.config/inkscape/fonts Microsoft_Sans_Serif_Regular.otf
Delete:
~/.config/inkscape/preferences.xml
In preferences.xml changed the font from sans-serif to noto-sans.
All useless.
 
I don't know what this is, but I found this file:
$ cat .config/inkscape/fontcollections/recently_used_fonts.log
Code:
sans-serif
There is some logic in this ?
 
So it would be specific for Wayland and/or x11-wm/sway.

Thanks a lot. Yes.
The problem of sans-serif with an exclamation mark in a triangle was solved by entering text in the selected area (for example, arial) with mandatory saving of the file. Close Inkscape. Open. No problem.
But if you return the font to sans-serif, the problem returns. That is, the problem can be hidden. But this does not solve the problem itself.
It remains to understand why there is no drop-down list of fonts in Inkscape and GIMP.
 
Played around with the editor a bit more. Need to wait for GIMP and Inkscape to update. I can't follow the logic.
 
Fonts are also OK for me. Because in Krita and LibreOffice, for example, everything is OK. I installed Abiword - there you can also see all the fonts through a drop-down list. So far I have only seen the problem in Inkscape and GIMP.
 
Fonts are also OK for me. Because in Krita and LibreOffice, for example, everything is OK. I installed Abiword - there you can also see all the fonts through a drop-down list. So far I have only seen the problem in Inkscape and GIMP.
Where are your installed fonts? Mine are in /usr/local/share/fonts. Some fonts I have in ~/config/inkscape/fonts. Maybe it is Wayland a problem? :-/
Try to tun Inkscape from terminal and open Text -> Text and Font and I hope you will find something about problem.
 
Maybe it is Wayland a problem?
Launched labwc under Wayland. The drop-down list of fonts works there. The problem is most likely in the sway. But there is also an interesting moment - not all fonts are visible in Inkscape. But this is another problem. I will look into it further.
Fernandel, look, in your LibreCalc when you hover the mouse over the cell borders, does a double-sided arrow sign appear when you drag the mouse to increase or decrease the cell size manually? In Wayland there is no such arrow when hovering over the cell borders. I looked in both labwc and sway. In Windows 11 there is. Thanks for your help.
 
Launched labwc under Wayland. The drop-down list of fonts works there. The problem is most likely in the sway. But there is also an interesting moment - not all fonts are visible in Inkscape. But this is another problem. I will look into it further.
Fernandel, look, in your LibreCalc when you hover the mouse over the cell borders, does a double-sided arrow sign appear when you drag the mouse to increase or decrease the cell size manually? In Wayland there is no such arrow when hovering over the cell borders. I looked in both labwc and sway. In Windows 11 there is. Thanks for your help.
arrows.gif
 

Attachments

  • arrrows.gif
    arrrows.gif
    47 KB · Views: 161
I see. If I understand correctly, there are no and never were any directional arrows in LibreOffice under Wayland. I don't even know what to say... Maybe they can be enabled in the settings of the package itself?
This is not critical. But it saves a lot of energy for the user. Constantly "aiming" at the cell borders is like a sniper, but very hardcore.
 
Possibly Wayland compositors doesn't accepting/handling the event?
Or affected apps like LibreOffice are not exposing kinda "mouse cursor is at the point that its shape should be changed" event? Not sure.
Or problematic compositors doesn't have mouse cursor types for such kind of events that X11 handles?
IIUC, these kind of events should be handled by toolkits like Gtk* and Qt*.
So toolkits themselves should have supports for such kind of events (if not, how it's managed on X11?).
 
Launched LibreCalc under X/i3 (FreeBSD 14.2). There is a double arrow pointer. I installed Ubuntu Sway Remix 24.04 LTS for the experiment. And Sway is version 1.9 (!!!) there. On Fedora it is almost the same. It also has all this. And even more. It turns out that this manifests itself in Wayland, under Sway (version 1.1) on FreeBSD. This is not suitable for a daily driver...
 
Launched LibreCalc under X/i3 (FreeBSD 14.2). There is a double arrow pointer. I installed Ubuntu Sway Remix 24.04 LTS for the experiment. And Sway is version 1.9 (!!!) there. On Fedora it is almost the same. It also has all this. And even more. It turns out that this manifests itself in Wayland, under Sway (version 1.1) on FreeBSD. This is not suitable for a daily driver...
Sway in Latest is 1.11 and Quarterly (1.10), a more updated version than the Ubuntu you mentioned.
 
Back
Top