How to make 'wine' fonts look better.

Write tutorials here
There are more tutorials here
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
User avatar
Level 17
Level 17
Posts: 7175
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

How to make 'wine' fonts look better.

Post by Flemur » Thu Nov 01, 2018 1:15 pm

I just did a full reinstall of OS (Mint 18.3) and wine, and the wine fonts 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


[HKEY_CURRENT_USER\Control Panel\Desktop]

2: Do this:

Code: Select all

wine regedit rgb.reg

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 look like:

Code: Select all

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


    <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>


Code: Select all

--> 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?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

Level 1
Level 1
Posts: 14
Joined: Wed Jan 03, 2018 10:35 pm

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

Post by simian » Sat Aug 31, 2019 1:29 am

Thank you!

User avatar
Level 11
Level 11
Posts: 3690
Joined: Tue Jul 05, 2016 1:20 pm

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

Post by trytip » Sat Aug 31, 2019 1:43 am

don't forget

Code: Select all

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

Post Reply

Return to “Tutorials”