Xft and X-Symbols???
Stephen J. Turnbull
stephen at xemacs.org
Thu Feb 24 23:34:41 EST 2005
>>>>> "Stefan" == Stefan Holst <holst at mathematik.uni-mainz.de> writes:
Stefan> I was very happy, when I first saw your xft branch did
Ahh, it's not really mine; my initials got on it for historical
reasons. Credit goes mostly to Matthias Neubauer and Eric Knauel and
a couple of Russian guys whose names I forget (mea maxima culpa).
Stefan> And even more after I saw the antialiazing result! The
Stefan> reason for me doing this was, that I wanted to have the
Stefan> same look of xemacs on windows and on linux. The truetype
Stefan> font that I got adicted to under windows did look really
Stefan> ugly with anti-aliazing.
You mean "without anti-aliasing", right?
Stefan> At the moment I' mainly using xemacs to finish my PhD
Stefan> in. A package that has become indispensible for me is
Stefan> x-symbols. This symbolic fonts increase the readability of
Stefan> the readability of my latex files extremely.
Stefan> I would really like to know how to get these fonts
Stefan> displayed in xemacs with your xft patch. I would
Stefan> appreciate any suggestion! Sincerely yours
IIRC, x-symbol defines a charset then uses an x-symbol-specific font
(distributed with x-symbol) to display it.
Unfortunately, the way things work currently is that the Xft
font-finding code _always_ returns a font, but it comes first in the
process, so the code to find a legacy X11 font never gets invoked.
I'm not sure how to deal with this, as the documents for fontconfig
and Xft are very unclear. It would be nice to tweak a parameter and
let Xft do all the work, but probably I need to check for a legacy
XLFD and if so find and use the X font using our old code.
I don't know when I'll have time to work on this (maybe late next
week, maybe not for 6 weeks), and I don't know how long it will take
to come up with a good solution. So I'll CC to xemacs-beta, where one
of the other Xft hackers may be able to use the hint to get things
moving for you.
If you want to help track this down, first cvs update to current
version of sjt-xft which has some important fixes, then edit the file
src/xft-fonts.c, find the initialization
int debug_xft = 0;
and change it to
int debug_xft = 1;
Then when you're using x-symbol, watch the console output which should
show Xft trying to find the x-symbol font and substituting some other
font for it. (I don't know when x-symbol loads its fonts, so this
could happen at initialization, or when your latex files get loaded by
session.el or desktop.el, or when you turn on x-symbol mode, or even
at some apparently random time.)
Institute of Policy and Planning Sciences http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.
More information about the XEmacs-Beta