help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: The relationship of settings for font in init.el and the one shown o


From: Hongyi Zhao
Subject: Re: The relationship of settings for font in init.el and the one shown on "Pick a font" UI.
Date: Thu, 7 Jan 2021 10:25:44 +0800

On Wed, Jan 6, 2021 at 11:30 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Hongyi Zhao <hongyi.zhao@gmail.com>
> > Date: Wed, 6 Jan 2021 16:33:13 +0800
> >
> > On the "Pick a font" UI, I select the following font and then "Save 
> > Options":
> >
> > "DejaVuSansMono Nerd Font Mono Book"
> >
> > Then I noticed that emacs will generate the following settings in the 
> > init.el:
> >
> > (custom-set-faces
> >  ;; custom-set-faces was added by Custom.
> >  ;; If you edit it by hand, you could mess it up, so be careful.
> >  ;; Your init file should contain only one such instance.
> >  ;; If there is more than one, they won't work right.
> >  '(default ((t (:family "DejaVuSansMono Nerd Font Mono" :foundry
> > "PfEd" :slant normal :weight normal :height 143 :width normal)))))
> >
> > I still can't find out the exact correspondence between the settings
> > for font in init.el and the one shown on "Pick a font" UI. Any hints
> > will be highly appreciated.
>
> Which is the problematic part?  The font name got recorded as
> "family", is that the problem?  If not what is?

I mean the following relationships:

Book -- normal
Font size 14 --  height 143

BR,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China



reply via email to

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