1
0
mirror of https://gitlab.com/baco/dotconf.git synced 2024-06-19 14:17:03 +00:00
dotfiles/fontconfig/fonts.conf
Dionisio E Alonso 71bd1fc4f0 feat: Prioritize symbols font in fontconfig
If using the Symbols Only version of the NerdFonts, prioritize that
fontface in order for it's glyphs to appear prior other fonts using the
same codes.

This patch still relies on an unpatched fontface for monospaced fonts,
but adds immediately, as a second option, the fontface of symbols from
NerdFont.
2024-04-16 08:55:25 -03:00

22 lines
687 B
Plaintext

<fontconfig>
<!-- Override monospace detection for custom fonts -->
<!-- either raising the symbols-font immediately after default font -->
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>Symbols Nerd Font Mono</family>
</prefer>
</alias>
<!-- or using the patched version of the default font -->
<match target="pattern">
<test name="family" qual="any">
<string>monospace</string>
</test>
<edit binding="strong" mode="prepend" name="family">
<!-- the patched version of: `fc-match monospace:regular` -->
<string>DejaVuSansMono Nerd Font</string>
</edit>
</match>
</fontconfig>