[Fontconfig] [PATCH] don't artificially embolden fixed-width fonts

Adam Williamson awilliam at redhat.com
Tue Feb 10 11:00:51 PST 2015

It changes the width. The key thing about a fixed-width font
is...it's fixed width. If someone's using one, they almost
certainly don't want an artificial bold face that uses wider
characters. This is a major pain when using a text editor that
uses bold face for syntax highlighting, and affects two widely-
used monospace fonts which have no native bold face, Droid
Sans Mono and Inconsolata.


 conf.d/90-synthetic.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/conf.d/90-synthetic.conf b/conf.d/90-synthetic.conf
index b8d1e85..5f1990a 100644
--- a/conf.d/90-synthetic.conf
+++ b/conf.d/90-synthetic.conf
@@ -46,6 +46,10 @@
 		<test target="pattern" name="weight" compare="more">
+		<!-- don't embolden fixed-width, as it changes the width -->
+		<test name="spacing" compare="not_eq">
+			<const>mono</const>
+		</test>
 		  set the embolden flag
 		  needed for applications using cairo, e.g. gucharmap, gedit, ...

More information about the Fontconfig mailing list