Skip to content
regorxxx edited this page May 26, 2023 · 8 revisions

General considerations and installation

All my Scripts are 100% compatible with Unix systems although some points should be taken into consideration:

  • ’Segoe UI’ must be present, as it is the font by default on the script’s UI.
  • In case the font is not found (check console log), revise your default font on Wine. Changing it to a different one than ’Segoe UI’ may give problems or crashes in some cases.
  • At some point the script may use external CMD tools which must be compatible with 32 bit systems in Wine (since that’s the most popular version, with IE).
  • Script may throw an error after installation (either a foobar2000 crash or panel crash) due to ’missing files’. Check 'Known problems' section.
  • Wine installations are specially sensitive to missing files, wrong paths, etc. which may lead to crashes or bugs usually not found on Windows installations. Have that in mind and double check your installation procedure before reporting an error.
  • All scripts try to use Wine-friendly methods, focusing on configuration settings that can be changed via menus or the UI panel, instead of using HTML (which only works on Windows), known working fonts, etc.
  • Please read SMP Wine page and feel free to report (to me) any additional problem with these scripts.
  • Read Wine foobar2000 thread for more info and tips.

Fonts not found even if they are installed

In case a installed font is not found by Foobar2000, put the font in the user directory "/home/user/.local/share/fonts". Create it if it doesn't exist. Afterward rebuild font cache "fc-cache -f -v", and reboot.

Fonts and square symbols for non-latin chars

Original thread here. Fonts are a recurrent problem with Wine. Segoe UI font (SMP's default font) in Windows displays all characters and languages fine, but in Wine it may show squares for non-latin characters. A lot of methods and hacks have been tried but none of them work in all cases.

image

By default, Windows 10 always uses Segoe UI, but when a language is required that is not supported by it, Windows will fall through a pre-specified fallback font stack for Segoe UI, which is stored in the Windows NT part of the registry (not the standard Windows part). Spoiler:

In Wine this key is not present by default.

In Unix some "Windows fonts" may be missing, but some of them can be download from Windows 10 fonts. Alternatively, Noto fonts may be added to the list below corresponding to the language you miss. After installing Segoe UI and Segoe UI Symbols you must add with regedit a new reg entry like this:

PATH: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink
--------------------
TYPE: REG_MULTI_SZ`
--------------------
NAME:"Segoe UI`
--------------------
Value:
--------------------
TAHOMA.TTF,Tahoma
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
SEGUISYM.TTF,Segoe UI Symbol
NOTOSANS-REGULAR.TTF,Noto Sans
NOTOSANSCJK-REGULAR.TTC,Noto Sans CJK JP
NOTOSANSSYMBOLS-REGULAR.TTF,Noto Sans Symbols

You can add as much Noto Sans as you want or fonts of your choice. This way Segoe UI can be used in foobar2000/scripts and whenever it needs to display a character not present on the default font it will fallback to the added fonts to show it, just like Windows does.

Fonts not found even if they are installed (V2)

In case none of the other fixes work, this may be needed for one of the required fonts, like Segoe UI. Manually add the following registry entries (Segoe UI is used as example):

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Fonts]
"Segoe UI (TrueType)"="C:\\windows\\Fonts\\segoeui.ttf"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]
"Segoe UI (TrueType)"="C:\\windows\\Fonts\\segoeui.ttf"

The paths need to point to a file that actually exists. In a standard wine prefix, these files don't exist, so they'll have to be added manually. Alternatively, one could use a wine-readable path to the font file on the system.

Features relying on file created/last modified date not working properly

On NTFS partitions, file time stamps may not be accessible under Unix.. Switch to a Kernel that supports NTFS3 and it will work fine.