Older topic but comes up on google; It turns out wine can infact remap fonts, it just is not automatic.
You need to use regedit and at a new key.
- Open regedit in wine with
wine regedit
or if foobar is in a different prefix from default WINEPREFIX=/path/to/prefix wine regedit
- Go to
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
- Add a new "Multi-String Value" and set it's name to the font you want to use on foobar2000. For example "DejaVu Sans Condensed"
- Then set it's value to the desired fallback font, in the format:
font file.ttf,Font Name As Seen in Font Dialog
The first parameter before comma is just the filename of the font, to check it find where your distro stores fonts (one common place is /usr/share/fonts)
The other parameter after comma should be the font name as written in the font select dialog, for example in foobar2000 font settings.
Here is an example value where I use one of the KoPubWolrd fonts (which might be also available as a package on your distro):
KoPubWorld Dotum_Pro Medium.otf,KoPubWorldDotum_Pro Medium
According to the source, you could presumably have multiple fonts as fallback by adding another entry on next line:
KoPubWorld Dotum_Pro Medium.otf,KoPubWorldDotum_Pro Medium
another font.ttf,Another Font
But I have not tested that.
Anyways, now foobar2000 uses the font set in settings first, and the font defined in registry for other characters not supported by the first font.
(PS: You can test it by typing somewhere two different characters that are only supported in the two separate fonts. For example DejaVu Sans Condensed does not support various asian characters, and the KoPubWorld font does not support for example zero-width space. So If only one font is used (like without the fontlink registry key), the other character is a square box, where as if fallback works, both characters would render fine.)
Yes, you can have as many fallback fonts as you like. Take a look here
Right now I have this for IBM Plex Sans (beautiful font)
IBMPLEXSANSARABIC-REGULAR.OTF,IBM Plex Sans Arabic
IBMPLEXSANSHEBREW-REGULAR.OTF,IBM Plex Sans Hebrew
IBMPLEXSANSJP-REGULAR.OTF,IBM Plex Sans JP
IBMPLEXSANSKR-REGULAR.OTF,IBM Plex Sans KR
IBMPLEXSANSTHAI-REGULAR.OTF,IBM Plex Sans Thai
IBMPLEXSANSTHAILOOPED-REGULAR.OTF,IBM Plex Sans Thai Looped
MEIRYO.TTC,Meiryo UI,128,96
MEIRYO.TTC,Meiryo UI
MSGOTHIC.TTC,MS UI Gothic
MSJH.TTC,Microsoft JhengHei UI,128,96
MSJH.TTC,Microsoft JhengHei UI
MSYH.TTC,Microsoft YaHei UI,128,96
MSYH.TTC,Microsoft YaHei UI
MALGUN.TTF,Malgun Gothic,128,96
MALGUN.TTF,Malgun Gothic
MINGLIU.TTC,PMingLiU
SIMSUN.TTC,SimSun
GULIM.TTC,Gulim
YUGOTHM.TTC,Yu Gothic UI,128,96
YUGOTHM.TTC,Yu Gothic UI
SEGOEUI.TTF,Segoe UI
SEGUISYM.TTF,Segoe UI Symbol
SEGUIEMJ.TTF,Segoe UI Emoji
SEGMDL2.TTF,Segoe MDL2 Assets
FONTAWESOME-WEBFONT.TTF,FontAwesome
TAHOMA.TTF,Tahoma
That use all IBM Sans variation, Microsoft CJKs, Segoe UI (default windows) with all symbols, emojis and assets with the addition of fontawesome.