[opensuse-factory] Re: Fontconfig fonts priority

On Wed, Feb 01, 2012 at 12:22:50PM +0100, Mariusz Fik wrote:
Please continue this thread at opensuse-factory as it was already suggested as part of this thread. Therefore the Reply-To got set. The begin of this thread was here: http://lists.opensuse.org/opensuse/2012-01/msg02101.html Why? Cause it's more likely that you'll get the required attention. Thanks, Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany

Lars Müller <lmuelle <at> suse.de> writes:
Hi, I was thinking about this issue and found the thread. I agree with OP as since ms fonts are on the top in the priority list, as soon as I install ms fonts all my desktop starts using ms fonts as default - even though I usually install those for specific purposes only. I wish msfonts to have lower priority in /etc/fonts/suse-post-user.conf, or is there a way to have a user specific settings file? Best, Joon -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Sunday 2013-01-27 20:23, Joon wrote:
Luxi Sans has a messed up stroke thickness at rendering sizes 13-15px. Google Droid and DejaVu seem to lack hints. BitStream Vera Sans seems to have hints, but kerns are sometimes odd. Arial has hints and good kerning. And that's what makes up the current default settings... simple as that. Note that Arial etc. were made by a multi-person group at Monotype, whereas the Microsoft C* fonts (Calibri, Cambria, et al) were not, which is probably why Arial still wins over C*.
The user file is ~/.fonts.conf and follows the same format as the system-wide file suse-post-user.conf. I myself use ~/.fonts.conf to set the way I prefer how kanji rendered at certain sizes. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

At Mon, 28 Jan 2013 01:13:12 +0400, Kyrill Detinov wrote:
Move it to $XDG_CONFIG_HOME/fontconfig/fonts.conf (where $XDG_CONFIG_HOME is usually ~/.config). Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Monday 2013-01-28 10:59, Takashi Iwai wrote:
Ah hell no. That does not work. If I `mv ~/.fonts.conf ~/.config/fontconfig/fonts.conf`, my 15px hiragana glyphs suddenly go from autohint=false to autohint=true! Which means ~/.fonts.conf is respected and ~/.config/fontconfig/fonts.conf is not. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

At Sun, 17 Feb 2013 15:10:24 +0100 (CET), Jan Engelhardt wrote:
Hmm, I don't see what can be wrong there at a quick glance. Could you check whether it's really read via strace or such? thanks, Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Sunday 2013-02-17 18:04, Takashi Iwai wrote:
19:02 nakamura:~ > strace -fe open gjiten 2>&1 | grep fonts.conf open("/etc/fonts/fonts.conf", O_RDONLY) = 10 open("/etc/fonts/conf.d/11-suse-hinting.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/12-suse-hinting-bc.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/16-suse-hintstyle.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/17-suse-bitmaps.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/18-suse-bitmaps-misc.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/20-fix-globaladvance.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/20-unhint-small-vera.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/30-metric-aliases.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/30-urw-aliases.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/31-cantarell.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/40-nonlatin.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/45-latin.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/49-sansserif.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/50-suse-pre-user.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/55-local.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/56-user.conf", O_RDONLY) = 12 open("/home/jengelh/.fonts.conf", O_RDONLY) = 13 open("/etc/fonts/conf.d/58-suse-post-user.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/60-latin.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/65-fonts-persian.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/65-nonlatin.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/69-unifont.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/80-delicious.conf", O_RDONLY) = 12 open("/etc/fonts/conf.d/90-synthetic.conf", O_RDONLY) = 12 {program runs} $ strace -fe open,stat,lstat gjiten 2>&1 | grep .config/fontc {no output} -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Sun, 17 Feb 2013 19:04, Jan Engelhardt <jengelh@...> wrote:
[snip]
"fontconfig" itself wants $XDG_CONFIG_HOME/fontconfig/fonts.conf but /etc/fonts/conf.d/56-user.conf says "~/.fonts.conf" to get it working for now AND the future, the easiest way would be adding a line: <include ignore_missing="yes">~/.config/fontconfig/fonts.conf</include> to /etc/fonts/conf.d/56-user.conf . Then for a new user create ~/.config/fontconfig/fonts.conf instead of ~/.fonts.conf via skeleton profile. maybe even add a comment that "~/.fonts.conf" should be moved to "~/.config/fontconfig/fonts.conf" in the /etc/fonts/conf.d/56-user.conf file, with the why (cleanup of $HOME, upstream compilance, etc.) That can be done for 12.3, as polishing item, prior to GoldMaster, ne? -- Yamaban. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Hi all,
to get it working for now AND the future, the easiest way would be adding a line:
fontconfig-2.10.x provided by 12.3, M17N, and Factory include the following 56-user.conf from the upstream: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- Load per-user customization file --> <include ignore_missing="yes" prefix="xdg">fontconfig/conf.d</include> <include ignore_missing="yes" prefix="xdg">fontconfig/fonts.conf</includ e> <!-- the following elements will be removed in the future --> <include ignore_missing="yes" deprecated="yes">~/.fonts.conf.d</include> <include ignore_missing="yes" deprecated="yes">~/.fonts.conf</include> </fontconfig> And then, "/.fonts.conf is deprecated" is printed by the "deprecated" attribute above. As far as I know, KDE still generates ~/.fonts.conf. although the KDE's font setting is really buggy and should be redesigned. Fuminobu TAKEYAMA (2013/02/18 3:30), Yamaban wrote:
-- Fuminobu TAKEYAMA -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

At Sun, 17 Feb 2013 19:04:09 +0100 (CET), Jan Engelhardt wrote:
Try to check "access", too: % strace -fe open -e access gjiten 2>&1 | grep fonts.conf Doesn't it check the path? Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Monday 2013-02-18 11:19, Takashi Iwai wrote:
It checks for paths, but none of them is ~/.config/... Mind you, on 12.2, there is no entry in the global fonts.conf to look in the XDG home, so it's not a problem per se . -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

At Tue, 19 Feb 2013 14:58:59 +0100 (CET), Jan Engelhardt wrote:
What system are you using at all? fontconfig package on 12.3 / FACTORY (or M17N) must contain the check of ~/.config/fontconfig/* path. Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Tuesday 2013-02-19 15:16, Takashi Iwai wrote:
As I said, I was using 12.2 to try this out, but it has already been made clear that /etc/fonts/, on 12.2, does not contain the required include directive that would cause a lookup in $HOME. In other words, problem solved. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

At Tue, 19 Feb 2013 16:11:48 +0100 (CET), Jan Engelhardt wrote:
OK, I didn't know that you are checking on 12.2 system :) And, yes, the new XDG path was introduced first since openSUSE 12.3. Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Sunday 2013-01-27 22:13, Kyrill Detinov wrote:
Fontconfig warning: "/etc/fonts/conf.d/56-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
fontconfig upstream changed their user directory to: $HOME/.config/fontconfig/fonts.conf I think we need to update that path. Greetings Marguerite -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

Lars Müller <lmuelle <at> suse.de> writes:
Hi, I was thinking about this issue and found the thread. I agree with OP as since ms fonts are on the top in the priority list, as soon as I install ms fonts all my desktop starts using ms fonts as default - even though I usually install those for specific purposes only. I wish msfonts to have lower priority in /etc/fonts/suse-post-user.conf, or is there a way to have a user specific settings file? Best, Joon -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Sunday 2013-01-27 20:23, Joon wrote:
Luxi Sans has a messed up stroke thickness at rendering sizes 13-15px. Google Droid and DejaVu seem to lack hints. BitStream Vera Sans seems to have hints, but kerns are sometimes odd. Arial has hints and good kerning. And that's what makes up the current default settings... simple as that. Note that Arial etc. were made by a multi-person group at Monotype, whereas the Microsoft C* fonts (Calibri, Cambria, et al) were not, which is probably why Arial still wins over C*.
The user file is ~/.fonts.conf and follows the same format as the system-wide file suse-post-user.conf. I myself use ~/.fonts.conf to set the way I prefer how kanji rendered at certain sizes. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

At Mon, 28 Jan 2013 01:13:12 +0400, Kyrill Detinov wrote:
Move it to $XDG_CONFIG_HOME/fontconfig/fonts.conf (where $XDG_CONFIG_HOME is usually ~/.config). Takashi -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org

On Monday 2013-01-28 10:59, Takashi Iwai wrote:
Ah hell no. That does not work. If I `mv ~/.fonts.conf ~/.config/fontconfig/fonts.conf`, my 15px hiragana glyphs suddenly go from autohint=false to autohint=true! Which means ~/.fonts.conf is respected and ~/.config/fontconfig/fonts.conf is not. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (8)
-
Fuminobu TAKEYAMA
-
Jan Engelhardt
-
Joon
-
Kyrill Detinov
-
Lars Müller
-
Marguerite Su
-
Takashi Iwai
-
Yamaban