Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=532237 --- Comment #6 from Akira TAGOH <[email protected]> 2009-12-03 23:46:59 EDT --- Sorry for taking a long time to work on this. I finally had a time to confirm the fontconfig behaviour and now see how it behaves on building fontsets in fontconfig. the example should be sufficient to explain how it works but not relevant to this font at all, sorry. just having the rules in one file like: <match> <test name="lang"> <string>zh-cn</string> </test> <test name="family"> <string>sans-serif</string> </test> <edit name="family" mode="prepend" binding="same"> <string>AR PL UKai CN</string> </edit> </match> and <match> <test name="lang"> <string>zh-cn</string> </test> <test name="family"> <string>sans-serif</string> </test> <edit name="family" mode="prepend" binding="same"> <string>AR PL UKai HK</string> </edit> </match> the first one would behaves similarly to the rules named with the small number. the later one would be one named with the large number. here is the result how fontconfig modifies the pattern: $ FC_DEBUG=4 fc-match "sans-serif:lang=zh-cn" ... cConfigSubstitute test pattern any lang Equal "zh-cn" FcConfigSubstitute test pattern any family Equal "sans-serif" Substitute match pattern any lang Equal "zh-cn" pattern any family Equal "sans-serif" edit Edit family Prepend "AR PL UKai CN"; Prepend list before "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "UnDotum"(w) "UnDotumBold"(w) "sans-serif"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) Prepend list after "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "UnDotum"(w) "UnDotumBold"(w) "AR PL UKai CN"(w) "sans-serif"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) ... FcConfigSubstitute test pattern any lang Equal "zh-cn" FcConfigSubstitute test pattern any family Equal "sans-serif" Substitute match pattern any lang Equal "zh-cn" pattern any family Equal "sans-serif" edit Edit family Prepend "AR PL UKai HK"; Prepend list before "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helve tica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "UnDo tum"(w) "UnDotumBold"(w) "AR PL UKai CN"(w) "sans-serif"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) Prepend list after "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "UnDotum"(w) "UnDotumBold"(w) "AR PL UKai CN"(w) "AR PL UKai HK"(w) "sans-serif"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) Since the testing pattern is "sans-serif" and the editing pattern is always inserted prior to "sans-serif" in the "prepend" mode, I see it's impossible that the number in the filename effects reversely for CIJK fonts no matter what we do use the language-specific overrides rules for them. I guess you may be confused to the "append" mode? in the append mode, later one is used prior to the early one right: FcConfigSubstitute test pattern any lang Equal "zh-cn" FcConfigSubstitute test pattern any family Equal "sans-serif" Substitute match pattern any lang Equal "zh-cn" pattern any family Equal "sans-serif" edit Edit family Append "AR PL UKai CN"; Append list before "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) " Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helvet ica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "UnDot um"(w) "UnDotumBold"(w) "sans-serif"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) Append list after "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "V erdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helveti ca"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "UnDotu m"(w) "UnDotumBold"(w) "sans-serif"(w) "AR PL UKai CN"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) FcConfigSubstitute test pattern any lang Equal "zh-cn" FcConfigSubstitute test pattern any family Equal "sans-serif" Substitute match pattern any lang Equal "zh-cn" pattern any family Equal "sans-serif" edit Edit family Append "AR PL UKai HK"; Append list before "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "UnDotum"(w) "UnDotumBold"(w) "sans-serif"(w) "AR PL UKai CN"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) Append list after "DejaVu Sans"(w) "Bitstream Vera Sans"(w) "DejaVu Sans"(w) "Verdana"(w) "Arial"(w) "Albany AMT"(w) "Luxi Sans"(w) "Nimbus Sans L"(w) "Helvetica"(w) "Lucida Sans Unicode"(w) "BPG Glaho International"(w) "Tahoma"(w) "UnDotum"(w) "UnDotumBold"(w) "sans-serif"(w) "AR PL UKai HK"(w) "AR PL UKai CN"(w) "Roya"(w) "Koodak"(w) "Terafik"(w) -- Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Fedora-fonts-bugs-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/fedora-fonts-bugs-list
