Added fontconfig for font fallback 🍾

This commit is contained in:
Sagi Dayan 2022-01-25 11:59:56 +02:00
parent 2d20980022
commit 854d63ac36
Signed by: sagi
GPG key ID: FAB96BFC63B46458
2 changed files with 45 additions and 0 deletions

28
files/fonts/fonts.conf Normal file
View file

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>sans</family>
<prefer>
<family>Noto Color Emoji</family>
</prefer>
</alias>
</fontconfig>

View file

@ -16,3 +16,20 @@
owner: root owner: root
group: root group: root
mode: preserve mode: preserve
- name: Setting up fonts.conf (Fallback for emojis)
block:
- name: Make sure fontconfig folder exists
file:
path: ~/.config/fontconfig
state: directory
mode: '0755'
changed_when: false
- name: Copy over font configuration
copy:
src: fonts/fonts.conf
dest: ~/.config/fontconfig/fonts.conf
mode: preserve
force: yes
changed_when: false