Comment 40 for bug 94282

Revision history for this message
Michael Ummels (urmel291) wrote :

Hi! Well, on my system it does the same. That's because fontconfig works like that. After all, if a font does not have a certain character, it's not a bad idea to check whether the default sans or serif font does have this character and only after that try more special fonts like Chinese or Japanese ones. You can check in which order fontconfig tries to substitute a font with the fc-match command. For example, to see the sorted list of matches for Verdana, run 'fc-match -s Verdana'. What the script does is just to call this command for each font on the system and copy the respective list of substitutions into the qtrc file, because this should give you the same substitution behaviour with Qt and fontconfig. Of course, if you are only interested in Chinese text, it would suffice to setup just one substitution for each font. But then, it is not clear which font the system will use for a text in a different language.