Fonts: Difference between revisions
imported>ErnstderLage m update pkg |
imported>Atkrad m The Vazir font name changed to Vazirmatn. |
||
| Line 47: | Line 47: | ||
=== Set multiple fonts for different languages === | === Set multiple fonts for different languages === | ||
If you want to use other languages alongside English, you may want to set appropriate fonts for each language in your whole OS. For example, a Persian speaker might want to use the [https://rastikerdar.github.io/ | If you want to use other languages alongside English, you may want to set appropriate fonts for each language in your whole OS. For example, a Persian speaker might want to use the [https://rastikerdar.github.io/vazirmatn/ Vazirmatn] font for Persian texts and the [https://design.ubuntu.com/font/ Ubuntu] font for English texts. Just put these lines into your <code>configuration.nix</code>: | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
| Line 63: | Line 63: | ||
fontconfig = { | fontconfig = { | ||
defaultFonts = { | defaultFonts = { | ||
serif = [ " | serif = [ "Vazirmatn" "Ubuntu" ]; | ||
sansSerif = [ " | sansSerif = [ "Vazirmatn" "Ubuntu" ]; | ||
monospace = [ " | monospace = [ "Vazirmatn Code" "Ubuntu" ]; | ||
}; | }; | ||
}; | }; | ||