reassign -1 fontconfig
retitle -1 fontconfig: wrong name for the Noto monospace font
merge -1 1028643
tags -1 patch
thanks

Le 14/01/2023 à 19:45, Raphaël Halimi a écrit :
If you wish to keep DejaVu as default, here is a simple patch to do that.

Ok, scratch this patch. I know that Debian don't like to diverge from upstream (and I'm a maintainer myself), so this was not a good idea. Moreover, the change from DejaVu to Noto was not the root cause of the problem.

The problem is that the monospace Noto font is actually "Noto Mono" and not "Noto Sans Mono" (probably a typo on upstream's part).

If you use a font manager you'll see that there is indeed a font called "Noto Sans Mono", but if you filter them out to list only the monospace fonts, you can see that there's no font called "Noto Sans Mono" among them, but there is one called "Noto Mono".

Using this one (which I now believe is the "real" monospace font from Noto) as default for the monospace family does fix both Xterm and gnome-terminal (and probably other terminals too).

This new patch fixes what I think is actually a bug (and which probably needs to be forwarded to upstream).

Regards,

--
Raphaël Halimi
Description: Fix default monospace font
 With Fontconfig 2.14, upstream made the Noto fonts default, but used "Noto
 Sans Mono" as the default font for the monospace family, which exists, but is
 actually not a monospace font. The right name is "Noto Mono".
Author: Raphaël Halimi <raphael.hal...@gmail.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1028897
Forwarded: no
Last-Update: 2023-01-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/conf.d/60-latin.conf
+++ b/conf.d/60-latin.conf
@@ -35,7 +35,7 @@
 	<alias>
 		<family>monospace</family>
 		<prefer>
-			<family>Noto Sans Mono</family>
+			<family>Noto Mono</family>
 			<family>DejaVu Sans Mono</family>
 			<family>Inconsolata</family>
 			<family>Andale Mono</family>

Reply via email to