From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Font in mode line Date: Tue, 26 Nov 2013 20:11:43 +0200 Message-ID: <83ob579go0.fsf@gnu.org> References: <83y54dbuul.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1385489504 21444 80.91.229.3 (26 Nov 2013 18:11:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 18:11:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 19:11:50 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VlN6z-0004SZ-JC for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 19:11:49 +0100 Original-Received: from localhost ([::1]:60376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlN6z-0008Kv-39 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 13:11:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlN6j-0008Kp-Dl for help-gnu-emacs@gnu.org; Tue, 26 Nov 2013 13:11:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlN6e-0001fz-Kt for help-gnu-emacs@gnu.org; Tue, 26 Nov 2013 13:11:33 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:39667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlN6e-0001fe-CD for help-gnu-emacs@gnu.org; Tue, 26 Nov 2013 13:11:28 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MWV00K00U92UG00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Tue, 26 Nov 2013 20:11:26 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWV00KQTUJ2M9B0@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Tue, 26 Nov 2013 20:11:26 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94660 Archived-At: > From: Francesco Mazzoli > Date: Tue, 26 Nov 2013 17:26:35 +0000 (UTC) > > Eli Zaretskii gnu.org> writes: > > By "wrongly" you mean that it looks like a different font was actually > > used? Because I cannot see anything wrong with the display shown in > > that screenshot. > > By "wrongly" I mean that the font is not displayed as it should. Compare my > first screenshot , to the second > to see what I mean. They just look different, that's all. But "different" doesn't necessarily mean "wrong". So those pictures are not enough to understand what, if anything, is wrong. > > If the font seems to be the problem, then please use format-mode-line > > to format a line of text using that font, then type "C-u C-x =" on one > > of the characters that are rendered incorrectly, and see which font > > was actually used for its display. That might give a clue about > > what's going on. > > I'm fairly sure the font is the correct one, since I can see I change when, > for example, I change specifically the `mode-line-buffer-id' face. How can it be the correct font, and yet look differently from the same font in the second screenshot? > I'm not sure how to use `format-mode-line' the way you described. Like this: C-x b *scratch* RET M-x font-lock-mode RET Now type this: (insert (format-mode-line mode-line-format)) and press C-j at the rightmost closing parenthesis. > If I format `mode- line-format' there doesn't seem to be an obvious > way to infer the faces that are used to render the various elements. Go to one of the problematic characters and type "C-u C-x =". Emacs will then show the font it used to display that character.