mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-24 16:25:25 +00:00
Added fontconfig for font fallback 🍾
This commit is contained in:
parent
2d20980022
commit
854d63ac36
2 changed files with 45 additions and 0 deletions
28
files/fonts/fonts.conf
Normal file
28
files/fonts/fonts.conf
Normal 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>
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue