unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
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:27:34 +0800	[thread overview]
Message-ID: <CAGP6POJ0e=X75c26A3A3PRgVpT05mOx=8Jm8KNRWy-FmpEvR7g@mail.gmail.com> (raw)
In-Reply-To: <CAGP6POJ-vZ9ue=vJWjHW6M5bJqb68Smbxoj97SEELcNcuKJaVA@mail.gmail.com>

On Thu, Jan 7, 2021 at 10:25 AM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> 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

As well as the following additional info which doesn't appear on the
"Pick a font" UI:

foundry
 "PfEd"

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	other threads:[~2021-01-07  2:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-06  8:33 The relationship of settings for font in init.el and the one shown on "Pick a font" UI Hongyi Zhao
2021-01-06  8:34 ` Hongyi Zhao
2021-01-06 15:27 ` Eli Zaretskii
2021-01-07  2:25   ` Hongyi Zhao
2021-01-07  2:27     ` Hongyi Zhao [this message]
2021-01-07 14:12       ` Eli Zaretskii
2021-01-07 14:11     ` Eli Zaretskii
2021-01-07 14:39       ` Hongyi Zhao
2021-01-07 15:04         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGP6POJ0e=X75c26A3A3PRgVpT05mOx=8Jm8KNRWy-FmpEvR7g@mail.gmail.com' \
    --to=hongyi.zhao@gmail.com \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).