From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Non-ASCII in Lucid menus Date: Mon, 14 Mar 2005 15:23:18 -0500 Message-ID: References: <877jkce8lv.fsf-monnier+emacs@gnu.org> <42341EC4.3060405@swipnet.se> <87r7ijbray.fsf-monnier+emacs@gnu.org> <7b2c4ca190cea7657e31ed04f07d3377@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110834067 25427 80.91.229.2 (14 Mar 2005 21:01:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2005 21:01:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 14 22:01:07 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DAwRJ-0003J4-AH for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2005 21:45:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAwh3-0000FG-Jx for ged-emacs-devel@m.gmane.org; Mon, 14 Mar 2005 16:01:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DAwSe-0004C5-Mb for emacs-devel@gnu.org; Mon, 14 Mar 2005 15:46:49 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DAwSM-00043z-7g for emacs-devel@gnu.org; Mon, 14 Mar 2005 15:46:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DAwSK-00041H-MS for emacs-devel@gnu.org; Mon, 14 Mar 2005 15:46:28 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DAw5y-00059X-Pm for emacs-devel@gnu.org; Mon, 14 Mar 2005 15:23:22 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 53C81340025; Mon, 14 Mar 2005 15:23:22 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id CAD924AC242; Mon, 14 Mar 2005 15:23:18 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id B4C70156062; Mon, 14 Mar 2005 15:23:18 -0500 (EST) Original-To: "Jan D." In-Reply-To: <7b2c4ca190cea7657e31ed04f07d3377@swipnet.se> (Jan D.'s message of "Sun, 13 Mar 2005 18:45:18 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.822, requis 5, autolearn=not spam, AWL 0.08, BAYES_00 -4.90) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34590 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34590 >>> 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. >> >> Hmm... good point. Do you happen to know how I could get the expected >> behavior that "if `font' is set but `fontSet' isn't, use `font'"? > Basically you have to set the default to something else than the > XtDdefaultFont(Set), and then check if either has been changed. But the default is specified as a string (the name of the default font), whereas in the code I only have access to mw->menu.font which is an XFontStruct*. How can I tell if this XFontStruct* corresponds to the default or not? > But better would be to just have one, as Motif has FontList. You mean I could just use ".font" instead of ".fontSet", ... Hmm ... that's an idea. I'll have to change the rest of the code that uses font->max_bounds.asent and things like that, tho. BTW, is the HAVE_X_I18N test still necessary? It'd help if we could just assume that X_I18N is available. >>> Also, the default font used for lucid menus will most certainly be >>> different now. >> Why? What can I do about it? > It is just that the default for font and fontset in Xt differs. How? It seems to be helvetica in both cases. Stefan