[Top][All Lists]

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

Re: set-default-font

From: Eli Zaretskii
Subject: Re: set-default-font
Date: Wed, 26 Aug 2020 08:40:48 +0300

> From: ken <>
> Date: Tue, 25 Aug 2020 16:38:16 -0400
> >>> set-default-font "-*-*-regular-r-*-*-*-180-*-75-*-*-iso8859-1")
> >> This setting is redundant, because Emacs does that by default.  I
> >> suggest that you simply delete it, you shouldn't see any difference.
> It's part of a larger function, so that I can change the font size
> (small, medium, large) from a menu.

If all you need is to change the font size, then specify only the

  (set-face-attribute 'default nil :height 180)

> > Or, if you did that to get a larger font, use set-face-attribute
> > instead to request a larger font without specifying it in XLFD format
> > (which requires too much information you don't want to provide).
> >
> Changing to:
>   (set-face-attribute
> "-*-fixed-medium-r-normal-*-16-*-*-*-*-*-fontset-standard")
> errors out.

Of course, it will: that's not how you call set-face-attribute.
Please consult its doc string for how to use it correctly.

reply via email to

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