How to make 'wine' fonts look better.

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Post Reply
User avatar
Flemur
Level 20
Level 20
Posts: 10097
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

How to make 'wine' fonts look better.

Post by Flemur »

I just did a full reinstall of OS (Mint 18.3) and wine, and the wine fonts looked....bad...so I re-discovered and applied this pretty simple process.

After you install wine and have a wine "prefix" (normally ~/.wine)

1: Create this "rgb.reg" file to enable rgb subpixel font anti-aliasing:

Code: Select all

REGEDIT4

[HKEY_CURRENT_USER\Control Panel\Desktop]
"FontSmoothing"="2"
"FontSmoothingGamma"=dword:00000578
"FontSmoothingOrientation"=dword:00000001
"FontSmoothingType"=dword:00000002


2: Do this:

Code: Select all

wine regedit rgb.reg
Supposedly

Code: Select all

winetricks settings fontsmooth=rgb
does the same thing, maybe not, sometimes...?

3. This will enable rgb anti-aliasing in linux AND prevent the use of bitmap fonts, which seems to be a problem with wine.
Create or modify the file

Code: Select all

~/.config/fontconfig/fonts.conf
...to look like:

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<fontconfig>

    <match target="font">
        <edit mode="assign" name="embeddedbitmap"><bool>false</bool></edit>

        <edit mode="assign" name="antialias">  <bool>true</bool></edit>
        <edit mode="assign" name="autohint">   <bool>false</bool></edit>
        <edit mode="assign" name="hinting">    <bool>true</bool></edit>

        <edit mode="assign" name="hintstyle"><const>hintslight</const></edit>

        <edit mode="assign" name="rgba"><const>rgb</const></edit>

        <edit mode="assign" name="lcdfilter"><const>lcddefault</const></edit>
    </match>

</fontconfig>
4.

Code: Select all

winecfg
--> Graphics tab --> set screen resolution more than 96 to increase the size of wine fonts. I usually use 112, 128 or some other multiple of 16 (dunno if that matters, but it's nice numerology if not).
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
simian
Level 2
Level 2
Posts: 57
Joined: Wed Jan 03, 2018 10:35 pm

Re: How to make 'wine' fonts look better.

Post by simian »

Thank you!
User avatar
trytip
Level 14
Level 14
Posts: 5371
Joined: Tue Jul 05, 2016 1:20 pm

Re: How to make 'wine' fonts look better.

Post by trytip »

don't forget

Code: Select all

sudo fc-cache -fv
to refresh fonts after editing or adding any fonts
Image
Post Reply

Return to “Tutorials”