MichaelUmmels

Differences between revisions 14 and 16 (spanning 2 versions)
Revision 14 as of 2007-12-27 21:58:06
Size: 1938
Editor: pD9EBC13C
Comment: Added section about QT font substitution
Revision 16 as of 2007-12-27 22:02:42
Size: 1875
Editor: pD9EBC13C
Comment:
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
""WARNING:"" 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). '''WARNING:''' 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).
Line 19: Line 19:
|| [http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/ latex-cleveref] || 0.8-0ubuntu1 || attachment:latex-cleveref_0.8-0ubuntu1_i386.deb || || latex-cleveref || 0.8-0ubuntu1 || attachment:latex-cleveref_0.8-0ubuntu1_i386.deb ||

For more information about myself, see my [https://launchpad.net/~urmel291 Launchpad page] or my [http://www.ummels.de personal homepage].

QT3 font substitution

Since using Kubuntu for the first time, I had the problem that Chinese text was not rendered correctly in QT3 applications. This is due to QT's own font substitution, which apparently does not rely on fontconfig (see this [https://bugs.launchpad.net/ubuntu/+source/qt-x11-free/+bug/94282 bug report]).

As a workaround, I wrote a Python script that emulates fontconfig's font substitution mechanism in QT3. 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 the --system option is provided, the substitutions are written to the global qtrc file.

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

You can find the script here: attachment:qtfonts.py

Ubuntu Packages

Currently, I only provide one package: the [http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref/ cleveref] package for intelligent cross-referencing with latex. Feel free to try it out (no warranty).

Package name

Version

File

latex-cleveref

0.8-0ubuntu1

attachment:latex-cleveref_0.8-0ubuntu1_i386.deb

If you have any comments or questions, don't hesitate to [mailto:michael.ummels@rwth-aachen.de e-mail me].

MichaelUmmels (last edited 2008-10-23 20:49:50 by pD9EBD91D)