[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font in mode line

From: Eli Zaretskii
Subject: Re: Font in mode line
Date: Tue, 26 Nov 2013 20:11:43 +0200

> From: Francesco Mazzoli <>
> Date: Tue, 26 Nov 2013 17:26:35 +0000 (UTC)
> Eli Zaretskii <eliz <at>> 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

> > 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]