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).

** Attachment added: "Script to set up font substitution in QT3"
   http://launchpadlibrarian.net/11075680/qtfonts.py

-- 
QT program doesn't select Chinese font correctly
https://bugs.launchpad.net/bugs/94282
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to