Hi, in the previous Wine versions I was able to put fonts in /usr/share/wine/fonts/*.ttf, and these fonts would be seen by Wine applications but not by Linux applications, as expected.
Starting from Ubuntu 22.04 and Wine 6, this location doesn't seem to be used anymore.
An `strace -fe trace=file wine program.exe 2>&1 | grep ttf` command shows that currently, fonts are only read from /usr/share/fonts and $HOME.
Is there a global fonts location now, where we can put fonts for Wine applications, that should not be seen by the whole OS?
Thank you.
Global wine/fonts location
Re: Global wine/fonts location
You can put the fonts in the ~/.wine/drive_c/windows/Fonts/ directory.
Re: Global wine/fonts location
Hi jkfloris, thank you for your input, but unfortunately ~/.wine is per user, it's not global.
E.g. a portable-app.deb package wouldn't be able to add fonts there for all users.
E.g. a portable-app.deb package wouldn't be able to add fonts there for all users.
Re: Global wine/fonts location
If I install a font in the /opt/wine-<branch>/share/wine/fonts folder, the programs running under Wine do recognize it. Maybe this a bug in Ubuntu's Wine package?
Re: Global wine/fonts location
Thank you, I will test with other distributions and report back.
Re: Global wine/fonts location
I'll be recording my test progress in this post:
WINEDEBUG=+file sebran 2>&1 | grep -v home | grep -v 'Z:\\\\usr\\\\share\\\\fonts' | grep -v /usr/share/fonts | grep -v 'C:\\\\windows\\\\fonts' | grep -i fonts
- Following https://wiki.winehq.org/Ubuntu, /opt/wine-staging/share/wine/fonts is indeed searched. Note that wine-stable doesn't yet exist for Ubuntu 22.04.
- TODO: test with upstream wine in /usr/bin, not in /opt, as it might involve a different code path.
- TODO: test with wine packages from other distributions.
WINEDEBUG=+file sebran 2>&1 | grep -v home | grep -v 'Z:\\\\usr\\\\share\\\\fonts' | grep -v /usr/share/fonts | grep -v 'C:\\\\windows\\\\fonts' | grep -i fonts
Re: Global wine/fonts location
I tested on Fedora 36 and wine 7.12, the problem didn't happen there.
I will test on Ubuntu 22.10 and wine 7, if it happens there too I'll report it there as distribution specific.
Thanks!
I will test on Ubuntu 22.10 and wine 7, if it happens there too I'll report it there as distribution specific.
Thanks!
-
- Newbie
- Posts: 3
- Joined: Thu Jan 19, 2023 10:54 am
Re: Global wine/fonts location
On my Ubuntu 22.04 with Wine 7.0.1/8.0.0.0 installed (without remaining configuration files from previous versions), the path /usr/share/wine does not exist. All global files are in /opt/wine-stable.