[R] Monospaced font not shown correctly (Xubuntu 20.04)
Rasmus Liland
jr@| @end|ng |rom po@teo@no
Wed Jan 20 11:21:20 CET 2021
On 2021-01-20 09:45 +0000, Viechtbauer, Wolfgang (SP) wrote:
> And to conclude this little saga (that nobody is probably reading, but at least then there is a solution in the archives):
>
> Adding the following to ~/.config/fontconfig/fonts.conf worked for me:
>
> <?xml version="1.0"?>
> <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
> <fontconfig>
> <match>
> <test name="family">
> <string>Courier</string>
> </test>
> <edit mode="assign" name="file">
> <string>/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf</string>
> </edit>
> </match>
> </fontconfig>
>
> Substitute your favorite (ttf/otf) monospaced font above.
>
> Best,
> Wolfgang
Glad you got to the bottom of this!
I have this in my ~/.fonts.conf:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>serif</family>
<prefer>
<family>XITS</family>
<family>Times New Roman</family>
<family>DejaVu Serif</family>
<family>Linux Libertine</family>
<family>JoyPixels</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
<family>Droid Sans</family>
<family>ProFontIIx</family>
</prefer>
</alias>
<alias>
<family>sans</family>
<prefer>
<family>DejaVu Sans</family>
<family>Liberation</family>
<family>Droid Sans</family>
<family>JoyPixels</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>Liberation Mono</family>
<family>Droid Sans Mono</family>
<family>Inconsolata</family>
<family>JoyPixels</family>
</prefer>
</alias>
<alias>
<family>mono</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>Liberation Mono</family>
<family>Droid Sans Mono</family>
<family>Inconsolata</family>
<family>JoyPixels</family>
</prefer>
</alias>
<match target="pattern">
<test name="prgname" qual="any">
<string>rofi</string>
</test>
<edit name="family" mode="prepend_first">
<string>Noto Color Emoji</string>
</edit>
</match>
<match target="pattern">
<test name="prgname" qual="any">
<string>geany</string>
</test>
<edit name="family" mode="prepend_first">
<string>Noto Color Emoji</string>
</edit>
</match>
</fontconfig>
Best,
Rasmus
More information about the R-help
mailing list