Fonts: DejaVu vs Noto

521 views
Skip to first unread message

Andrea Venturoli

unread,
Oct 6, 2023, 3:51:49 AM10/6/23
to freebsd-...@freebsd.org
Hello.

I've got some software (e.g. xfce4-terminal) set to use "Monospace"
font: this used to map to "DejaVu" font on 2023Q3 port tree; however,
after the upgrade to 2023Q4, it now mats to "Noto".

Before (Q3):
> % fc-match Monospace
> DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
After (Q4):
> % fc-match Monospace
> NotoSansMono-Regular.ttf: "Noto Sans Mono" "Regular"

I read about the change stemming from Fedora up to fontconfig...
Fine.



However, in some situation I really want DejaVu instead of Noto: I
thought specifying it explicitly would solve, but it doesn't.

Before (Q3):
> % fc-match DevaVu
> DejaVuSans.ttf: "DejaVu Sans" "Book"
After (Q4):
> % fc-match DejaVu
> NotoSans-Regular.ttf: "Noto Sans" "Regular"

This puzzles me and piss me off.
I can I tell the system not to override my choice?

bye & Thanks in advance
av.

P.S.
Of course I have dejavu-2.37_3 installed.

Tijl Coosemans

unread,
Oct 6, 2023, 9:41:45 AM10/6/23
to Andrea Venturoli, freebsd-...@freebsd.org
It looks like fc-match returns exact matches only and default
sans-serif otherwise. So you have to run fc-match 'DejaVu Sans'.

You can override the default sans-serif font system-wide by creating
/usr/local/etc/fonts/local.conf and per user by creating
~/.config/fontconfig/fonts.conf with the following content:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<description>Set preferable fonts for Latin</description>
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
</prefer>
</alias>
</fontconfig>

Andrea Venturoli

unread,
Oct 7, 2023, 11:42:37 AM10/7/23
to Tijl Coosemans, freebsd-...@freebsd.org
On 10/6/23 14:55, Tijl Coosemans wrote:

Hello.



> It looks like fc-match returns exact matches only and default
> sans-serif otherwise. So you have to run fc-match 'DejaVu Sans'.

My ignorance.
However, specifying it in XFCE-Terminal's settings windows should have
worked, I think (you don't type there, but select from a list).

> You can override the default sans-serif font system-wide by creating
> /usr/local/etc/fonts/local.conf and per user by creating
> ~/.config/fontconfig/fonts.conf with the following content:

This is what I did, thanks.
(Now XFCETerminal works fine; I don't care about all other programs).

bye & Thanks
av.

Reply all
Reply to author
Forward
0 new messages