mirror of
https://gitlab.com/sagidayan/linux-config.git
synced 2024-11-22 07:15:25 +00:00
Merge branch 'alactirry-fontconfig' into 'main'
Added fontconfig for font fallback 🍾 See merge request sagidayan/linux-config!13
This commit is contained in:
commit
166addff56
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