My goal is to configure Courier New font on CentOS7 to look like in Windows XP (XP just for example, not using it). Font configure file at ~/.config/fontconfig/fonts.conf:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>monospace</family>
<prefer><family>Courier New</family></prefer>
</alias>
<match target="font">
<edit name="antialias" mode="assign">
<bool>false</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="hintstyle" mode="assign">
<const>hintslight</const>
</edit>
<edit name="lcdfilter" mode="assign">
<const>lcdlight</const>
</edit>
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
</match>
</fontconfig>
Courier New fonts installed.
Bad result on CentOS:
Good result on Win10:
Tried with option:
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
Even worse:
EDIT:
With ftview
(thanks to @contemplator for good hint) I found the exact match, the problem now is how to convert those settings to xml:
EDIT 2:
It seems like FreeType is involved by setting:
export FREETYPE_PROPERTIES="truetype:interpreter-version=35"
Now trying to find how set the value.