Compare commits

..

2 commits

Author SHA1 Message Date
166addff56 Merge branch 'alactirry-fontconfig' into 'main'
Added fontconfig for font fallback 🍾

See merge request sagidayan/linux-config!13
2022-01-25 10:30:52 +00:00
854d63ac36
Added fontconfig for font fallback 🍾 2022-01-25 11:59:56 +02:00
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
group: root
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