Side effect of the binding inheritance by binding="same"
Submitted by Behdad Esfahbod
Assigned to fon..@..op.org
Description
Akira hints at that on the fedora fonts list in message sent on 2010-03-19. He writes:
I'm wondering if we should recommend the use of /binding="same"/ in the locale-specific overrides rule of the template because it introduces the unexpected result depending on the queries pattern.
Here is the example of it:
$ rpm -qa *-fonts | grep mono dejavu-sans-mono-fonts-2.30-2.fc12.noarch liberation-mono-fonts-1.05.2.20091019-5.fc13.noarch $ rpm -q vlgothic-fonts vlgothic-fonts-20100126-2.fc13.noarch
$ fc-match monospace:lang=ja VL-Gothic-Regular.ttf: "VL Gothic" "regular" $ fc-match monospace:lang=ja-jp VL-Gothic-Regular.ttf: "VL Gothic" "regular" $ fc-match monospace:lang=en VL-Gothic-Regular.ttf: "VL Gothic" "regular" $ fc-match monospace:lang=en-us VL-Gothic-Regular.ttf: "VL Gothic" "regular"
Also same result for serif, but not for sans-serif, since apparently fontconfig always deals with it as "sans" for the initial query pattern, translating it to "sans-serif". and all of rules are targetting "sans-serif" but not "sans". so it's luckily working.
Version: 2.7