Comment 35 for bug 94282

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

I have written a Python script that sets up font substitution in QT3 to work as with fontconfig. The idea is to check for each font that exists on the system which fonts can be substituted for it using the fc-match command. A corresponding substitution entry is then written to the user's qtrc file. If you provide the --system option, the substitutions are written to the global qtrc file. Be warned however: The script will replace any existing font substitution in the qtrc file (e.g. ones written by qtconfig). To keep the old substitutions copy all entries in the [Font Substitution] section of the old qtrc file into the new one. A backup of the old qtrc file is saved under the name qtrc.old in the same directory where the qtrc file is located (i.e. $HOME/.qt or /etc/qt3 if you use the --system option).