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 16
Level 16
Posts: 6287
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 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

Post Reply

Return to “Tutorials”