summaryrefslogtreecommitdiffstats
path: root/roles/font/templates
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-01-22 17:42:47 +0100
committerAhmed Abdelhalim <[email protected]>2026-01-22 17:42:47 +0100
commitf0339564e2169cf281a4be9bcdf3a84e454dcebd (patch)
tree69df81ab617fc10749a45361a8af2a1ce0a830d8 /roles/font/templates
parent1395bd1f3a1c1051fb74b97ec50715c6d9787fdd (diff)
Update the font role configuration to support arabic on arch
Diffstat (limited to 'roles/font/templates')
-rw-r--r--roles/font/templates/local.conf.j218
1 files changed, 16 insertions, 2 deletions
diff --git a/roles/font/templates/local.conf.j2 b/roles/font/templates/local.conf.j2
index 33574afe..271a3b7e 100644
--- a/roles/font/templates/local.conf.j2
+++ b/roles/font/templates/local.conf.j2
@@ -19,6 +19,15 @@
<const>lcddefault</const>
</edit>
</match>
+ <!-- Default font for the Arabic language (no fc-match pattern) -->
+ <match>
+ <test compare="contains" name="lang">
+ <string>ar</string>
+ </test>
+ <edit mode="prepend" name="family">
+ <string>"Noto Sans Arabic"</string>
+ </edit>
+ </match>
<!-- Configure default fonts & fallback fonts -->
<!-- Replace fonts with preferred fonts -->
<!-- Noto Emoji allows for emojis to render in all apps including the terminal, remove if not needed -->
@@ -26,7 +35,9 @@
<family>serif</family>
<prefer>
<family>Noto Serif</family>
+ <family>Noto Sans Arabic</family>
<family>FreeSerif</family>
+ <family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
@@ -34,7 +45,9 @@
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
+ <family>Noto Sans Arabic</family>
<family>FreeSans</family>
+ <family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
</alias>
@@ -42,6 +55,7 @@
<family>sans</family>
<prefer>
<family>Noto Sans</family>
+ <family>Noto Sans Arabic</family>
<family>FreeSans</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
@@ -51,7 +65,7 @@
<family>monospace</family>
<prefer>
<family>JetBrainsMono</family>
- <family>Noto Mono</family>
+ <family>Noto Sans Mono</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>
@@ -60,7 +74,7 @@
<family>mono</family>
<prefer>
<family>JetBrainsMono</family>
- <family>Noto Mono</family>
+ <family>Noto Sans Mono</family>
<family>Noto Color Emoji</family>
<family>Noto Emoji</family>
</prefer>