unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Proportional font in the modeline
@ 2022-03-14 10:03 Marcin Borkowski
  2022-03-14 10:18 ` Lars Ingebrigtsen
  2022-03-14 11:55 ` irek
  0 siblings, 2 replies; 4+ messages in thread
From: Marcin Borkowski @ 2022-03-14 10:03 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

I remember reading somewhere about a recent experiment with proportional
fonts in the modeline.  I compiled a new Emacs (from master) a few days
ago, but the font is still fixed-width.  How do i enable variable-width
fonts in the modeline?

TIA,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proportional font in the modeline
  2022-03-14 10:03 Proportional font in the modeline Marcin Borkowski
@ 2022-03-14 10:18 ` Lars Ingebrigtsen
  2022-03-15  7:46   ` Marcin Borkowski
  2022-03-14 11:55 ` irek
  1 sibling, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-03-14 10:18 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Help Gnu Emacs mailing list

Marcin Borkowski <mbork@mbork.pl> writes:

> I remember reading somewhere about a recent experiment with proportional
> fonts in the modeline.  I compiled a new Emacs (from master) a few days
> ago, but the font is still fixed-width.  How do i enable variable-width
> fonts in the modeline?

Customise the `mode-line' face.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proportional font in the modeline
  2022-03-14 10:03 Proportional font in the modeline Marcin Borkowski
  2022-03-14 10:18 ` Lars Ingebrigtsen
@ 2022-03-14 11:55 ` irek
  1 sibling, 0 replies; 4+ messages in thread
From: irek @ 2022-03-14 11:55 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: help-gnu-emacs

Marcin Borkowski <mbork@mbork.pl> writes:
> I remember reading somewhere about a recent experiment with proportional
> fonts in the modeline.  I compiled a new Emacs (from master) a few days
> ago, but the font is still fixed-width.  How do i enable variable-width
> fonts in the modeline?

I believe that only tab-bar mode uses variable-pitch by default right
now.  In fact mode-line face was inheriting from variable-pitch as well.
You can find that in commit 84bf9549860aae22931951d52b194b1fcfca1556 but
later it was removed in commit 3f843b25dc96867043feebb1d928bde4a7a777a3

Quoting from commit 3f843b25dc96867043feebb1d928bde4a7a777a3:
> (mode-line): Don't inherit from vaiable-pitch.

So right now you have to force variable-pitch in mode line face by
modifying mode-line face.

I hope this clears all the confusion.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Proportional font in the modeline
  2022-03-14 10:18 ` Lars Ingebrigtsen
@ 2022-03-15  7:46   ` Marcin Borkowski
  0 siblings, 0 replies; 4+ messages in thread
From: Marcin Borkowski @ 2022-03-15  7:46 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Help Gnu Emacs mailing list


On 2022-03-14, at 11:18, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> I remember reading somewhere about a recent experiment with proportional
>> fonts in the modeline.  I compiled a new Emacs (from master) a few days
>> ago, but the font is still fixed-width.  How do i enable variable-width
>> fonts in the modeline?
>
> Customise the `mode-line' face.

Thanks, this line:

(set-face-attribute 'mode-line nil :height 0.8333 :inherit 'variable-pitch)

did the trick (the :height is an old customization of mine).

Thanks,

-- 
Marcin Borkowski
http://mbork.pl



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-15  7:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-14 10:03 Proportional font in the modeline Marcin Borkowski
2022-03-14 10:18 ` Lars Ingebrigtsen
2022-03-15  7:46   ` Marcin Borkowski
2022-03-14 11:55 ` irek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).