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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Refs:

http://askubuntu.com/questions/100672/how-to-prevent-automatic-bold-version-of-a-font-to-be-wider-than-regular-havin
http://lists.freedesktop.org/archives/fontconfig/2012-January/003730.html
https://bbs.archlinux.org/viewtopic.php?id=133256
---
 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">
 			<const>medium</const>
 		</test>
+		<!-- 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, ...
-- 
2.3.0

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig





[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux