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=578028
--- Comment #4 from Akira TAGOH tagoh@redhat.com 2010-04-21 08:22:01 EDT --- Testing result: # rpm -q lklug-fonts lklug-fonts-0.6-4.20090803cvs.fc13.noarch # fc-match monospace:lang=en DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" # fc-match monospace:lang=en-us DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book" # fc-match monospace:lang=si lklug.ttf: "LKLUG" "Regular" # fc-match monospace:lang=si-lk lklug.ttf: "LKLUG" "Regular" # fc-match serif:lang=en DejaVuSerif.ttf: "DejaVu Serif" "Book" # fc-match serif:lang=en-us DejaVuSerif.ttf: "DejaVu Serif" "Book" # fc-match serif:lang=si lklug.ttf: "LKLUG" "Regular" # fc-match serif:lang=si-lk lklug.ttf: "LKLUG" "Regular"
Even though no monospaced fonts nor serif fonts in lklug-fonts (nor probably in Fedora? dunno I don't have them installed at least because it's not in comps), this would be good side-effect fontconfig tries to pick up the better font for the language. however please note that this kind of expectation isn't a good idea because it could be messed up when any existing fonts started to support Sinhala.
# fc-match sans:lang=en DejaVuSans.ttf: "DejaVu Sans" "Book" # fc-match sans:lang=en-us DejaVuSans.ttf: "DejaVu Sans" "Book" # fc-match sans:lang=si lklug.ttf: "LKLUG" "Regular" # fc-match sans:lang=si-lk lklug.ttf: "LKLUG" "Regular"
That looks good.
# for i in $(ls /usr/share/locale|grep -v si); do fc-match sans:lang=$i|grep LKLUG; [ $? = 0 ] && echo $i; done #
So the updated package works as expected.