Improve font rendering
This commit is contained in:
parent
3f88085b3d
commit
c4c538a514
3 changed files with 124 additions and 83 deletions
|
@ -1,85 +1,118 @@
|
||||||
<?xml version='1.0'?>
|
<?xml version="1.0"?>
|
||||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||||
|
<!-- https://wiki.archlinux.org/title/font_configuration -->
|
||||||
<fontconfig>
|
<fontconfig>
|
||||||
<!-- Smooth fonts. -->
|
|
||||||
<match target="font">
|
<match target="font">
|
||||||
<edit mode="assign" name="rgba">
|
<edit name="antialias" mode="assign">
|
||||||
<const>rgb</const>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
<match target="font">
|
|
||||||
<edit mode="assign" name="hinting">
|
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
<match target="font">
|
<match target="font">
|
||||||
<edit mode="assign" name="hintstyle">
|
<edit name="hinting" mode="assign">
|
||||||
<const>hintslight</const>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
<match target="font">
|
|
||||||
<edit mode="assign" name="antialias">
|
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
<match target="font">
|
<match target="font">
|
||||||
<edit mode="assign" name="lcdfilter">
|
<edit name="autohint" mode="assign">
|
||||||
<const>lcddefault</const>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
<match target="font">
|
|
||||||
<edit mode="assign" name="autohint">
|
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
<!-- Assign the basic serif, sans-serif, and monospace font families. -->
|
|
||||||
<match target="pattern">
|
<match target="font">
|
||||||
<test qual="any" name="family">
|
<edit name="hintstyle" mode="assign">
|
||||||
<string>serif</string>
|
<const>hintslight</const>
|
||||||
</test>
|
|
||||||
<edit mode="assign" name="family">
|
|
||||||
<string>Liberation Serif</string>
|
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family">
|
<match target="font">
|
||||||
<string>sans-serif</string>
|
<edit name="rgba" mode="assign">
|
||||||
</test>
|
<const>rgb</const>
|
||||||
<edit mode="assign" name="family">
|
|
||||||
<string>Liberation Sans</string>
|
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family">
|
<match target="font">
|
||||||
<string>monospace</string>
|
<edit name="lcdfilter" mode="assign">
|
||||||
</test>
|
<const>lcddefault</const>
|
||||||
<edit mode="assign" name="family">
|
|
||||||
<string>Liberation Mono</string>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
<!-- Substitute basic PostScript fonts with better looking ones. -->
|
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family">
|
|
||||||
<string>Times</string>
|
|
||||||
</test>
|
|
||||||
<edit mode="assign" name="family">
|
|
||||||
<string>Liberation Serif</string>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family">
|
|
||||||
<string>Helvetica</string>
|
|
||||||
</test>
|
|
||||||
<edit mode="assign" name="family">
|
|
||||||
<string>Liberation Sans</string>
|
|
||||||
</edit>
|
|
||||||
</match>
|
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family">
|
|
||||||
<string>Courier</string>
|
|
||||||
</test>
|
|
||||||
<edit mode="assign" name="family">
|
|
||||||
<string>Liberation Mono</string>
|
|
||||||
</edit>
|
</edit>
|
||||||
</match>
|
</match>
|
||||||
|
|
||||||
|
<selectfont>
|
||||||
|
<rejectfont>
|
||||||
|
<pattern>
|
||||||
|
<patelt name="scalable">
|
||||||
|
<bool>false</bool>
|
||||||
|
</patelt>
|
||||||
|
</pattern>
|
||||||
|
</rejectfont>
|
||||||
|
</selectfont>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>DejaVu Serif</family>
|
||||||
|
<family>Bitstream Vera Serif</family>
|
||||||
|
<family>Times New Roman</family>
|
||||||
|
<family>Thorndale AMT</family>
|
||||||
|
<family>Luxi Serif</family>
|
||||||
|
<family>Nimbus Roman No9 L</family>
|
||||||
|
<family>Nimbus Roman</family>
|
||||||
|
<family>Times</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>sans-serif</family>
|
||||||
|
<prefer>
|
||||||
|
<family>DejaVu Sans</family>
|
||||||
|
<family>Bitstream Vera Sans</family>
|
||||||
|
<family>Verdana</family>
|
||||||
|
<family>Arial</family>
|
||||||
|
<family>Albany AMT</family>
|
||||||
|
<family>Luxi Sans</family>
|
||||||
|
<family>Nimbus Sans L</family>
|
||||||
|
<family>Nimbus Sans</family>
|
||||||
|
<family>Helvetica</family>
|
||||||
|
<family>Lucida Sans Unicode</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>monospace</family>
|
||||||
|
<prefer>
|
||||||
|
<family>DejaVu Sans Mono</family>
|
||||||
|
<family>Bitstream Vera Sans Mono</family>
|
||||||
|
<family>Inconsolata</family>
|
||||||
|
<family>Andale Mono</family>
|
||||||
|
<family>Courier New</family>
|
||||||
|
<family>Cumberland AMT</family>
|
||||||
|
<family>Luxi Mono</family>
|
||||||
|
<family>Nimbus Mono L</family>
|
||||||
|
<family>Nimbus Mono</family>
|
||||||
|
<family>Nimbus Mono PS</family>
|
||||||
|
<family>Courier</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>fantasy</family>
|
||||||
|
<prefer>
|
||||||
|
<family>Impact</family>
|
||||||
|
<family>Copperplate Gothic Std</family>
|
||||||
|
<family>Cooper Std</family>
|
||||||
|
<family>Bauhaus Std</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
|
<alias>
|
||||||
|
<family>cursive</family>
|
||||||
|
<prefer>
|
||||||
|
<family>ITC Zapf Chancery Std</family>
|
||||||
|
<family>Zapfino</family>
|
||||||
|
<family>Comic Sans MS</family>
|
||||||
|
</prefer>
|
||||||
|
</alias>
|
||||||
|
|
||||||
</fontconfig>
|
</fontconfig>
|
||||||
|
|
|
@ -29,3 +29,7 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ ansible_env.HOME }}/.local/share/fonts"
|
path: "{{ ansible_env.HOME }}/.local/share/fonts"
|
||||||
state: directory
|
state: directory
|
||||||
|
- name: Create ~/.config/fontconfig directory
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ ansible_env.HOME }}/.config/fontconfig"
|
||||||
|
state: directory
|
||||||
|
|
|
@ -49,3 +49,7 @@
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "xbindkeysrc"
|
src: "xbindkeysrc"
|
||||||
dest: "{{ ansible_env.HOME }}/.xbindkeysrc"
|
dest: "{{ ansible_env.HOME }}/.xbindkeysrc"
|
||||||
|
- name: Copy fonts.conf
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: "fonts.conf"
|
||||||
|
dest: "{{ ansible_env.HOME }}/.config/fontconfig/fonts.conf"
|
||||||
|
|
Loading…
Reference in a new issue