You are not logged in.

#1 2013-12-14 11:08:10

lazysunbather
Member
From: Poznań, Poland
Registered: 2013-09-18
Posts: 12

Per-user fonts.conf not being honored?

I'm trying to disable emboldening for monospace fonts, which is known for causing alignment issues in text editors for fonts that don't have a bold typeface. I put the following in my ~/.config/fontconfig/fonts.conf file :

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
	<match target="font">
		<test name="spacing" compare="eq">
			<const>mono</const>
		</test>
		<edit name="embolden" mode="assign">
			<bool>false</bool>
		</edit>
	</match>
</fontconfig>

However, the changes don't seem to be applied - Inconsolata is still rendered as fake-bold in Geany. I tried running fc-cache -r and rebooting, but it didn't seem to have any kind of effect.

What am I doing wrong? Thank you in advance for any ideas.
-dkk

Last edited by lazysunbather (2013-12-14 11:12:07)


A plastic bag stranded at the lights, this once was me!

Offline

#2 2013-12-14 11:23:13

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Per-user fonts.conf not being honored?

Check that you have /etc/fonts/conf.d/50-user.conf, containing the line:

<include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</include>

Offline

#3 2013-12-14 11:31:03

lazysunbather
Member
From: Poznań, Poland
Registered: 2013-09-18
Posts: 12

Re: Per-user fonts.conf not being honored?

Unfortunately, it's there.


A plastic bag stranded at the lights, this once was me!

Offline

#4 2013-12-14 19:22:57

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Per-user fonts.conf not being honored?

Check that your "match" is actually matching. I like to add this, which makes the font ugly, as an easy way to check the match:

<edit mode="assign" name="antialias"><bool>false</bool></edit>

Offline

#5 2013-12-14 23:42:55

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: Per-user fonts.conf not being honored?

i removed /etc/fonts/conf.d/90-synthetic.conf, iirc, to disable fake bold and fake italic.

Offline

#6 2013-12-15 10:46:44

lazysunbather
Member
From: Poznań, Poland
Registered: 2013-09-18
Posts: 12

Re: Per-user fonts.conf not being honored?

@brebs, I tried that and all my monospace fonts got ugly, like you said. So I guess that the match is matching. However, it's still no-go when it comes to disabling the "embolden" attribute.

I ended up with just removing 90-synthetic.conf, like @ondoho said. However, I'd still like to find out what's causing this kind of behaviour.


A plastic bag stranded at the lights, this once was me!

Offline

#7 2013-12-18 01:15:14

zyth88
Member
Registered: 2012-12-21
Posts: 14

Re: Per-user fonts.conf not being honored?

Give it a try with the binding="same" attribute on the edit group.

Last edited by zyth88 (2013-12-18 01:15:26)

Offline

Board footer

Powered by FluxBB