Stefan Monnier wrote:

The patch below makes the Lucid menu use fontsets to draw its text, so that
it's able to write non-ASCII (the set of chars supported is dependent on the
locale, and of course on the fonts).

I'm very much an idiot when it comes to X11 programming, xfaces.c, and
lwlib, so this might be riddled with bugs and misunderstandings, but after
some trial-and-error this not only works for me, but it even looks sensible
to me.

Any objection?


It is incompatible in the sense that settings in .Xresources that previously used
...*menu*font: ...


now must use
...*menu*fontSet:

for the lucid menus. This should be mentioned in NEWS. Also, the default font used for lucid menus will most certainly be different now.

PS: The use of XrmPutLineResource in xfaces.c seems amazingly brittle and
hackish, but that's what the rest of the code uses.



It basically sets a default value. If the user overrides it (with an X resource or -xrm on the command line) the user setting takes precedence. Yes, it is a bit hackish.


   Jan D.



_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to