(Linux) wine font problem: boxes, lines, etc...

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1484
Joined: Fri Aug 29, 2003 8:39 pm

(Linux) wine font problem: boxes, lines, etc...

Post by ^rooker »

[PROBLEM]
Suddenly, wine didn't display meaningful characters anymore - just boxes, lines and other rubbish.

[SOLUTION]
Remove the current font-folder, restore a default (e.g. sserife.fon), and then add the other fonts back:

Code: Select all

mv ~/.wine/drive_c/windows/fonts ~/.wine/drive_c/windows/xxx_fonts
mkdir ~/.wine/drive_c/windows/fonts

# just open and close winecfg to reset default font:
winecfg

cp /usr/share/wine/fonts/sserife.fon ~/.wine/drive_c/windows/fonts

# again: open and close:
winecfg

mv ~/.wine/drive_c/windows/xxx_fonts/* ~/.wine/drive_c/windows/fonts
rmdir ~/.wine/drive_c/windows/xxx_fonts
[DETAILS]
Thanks to this article on ubuntuforums.org, it was clear that this was caused by an application installing "the first new font" on my wine.

Initially, the "~/.wine/drive_c/windows/fonts/" folder is empty. so wine defaults to sans-serife font. As soon as you drop a font for the first time into that folder, wine assumes to use it as default font.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply