From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: The relationship of settings for font in init.el and the one shown on "Pick a font" UI. Date: Wed, 6 Jan 2021 16:34:40 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24998"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 06 09:35:18 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kx4Hm-0006Nb-Ia for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 09:35:18 +0100 Original-Received: from localhost ([::1]:60872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx4Hl-0000R1-Kv for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 03:35:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60740) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx4HQ-0000Qp-P6 for help-gnu-emacs@gnu.org; Wed, 06 Jan 2021 03:34:56 -0500 Original-Received: from mail-yb1-xb35.google.com ([2607:f8b0:4864:20::b35]:39066) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kx4HO-0003Ci-Jg for help-gnu-emacs@gnu.org; Wed, 06 Jan 2021 03:34:56 -0500 Original-Received: by mail-yb1-xb35.google.com with SMTP id k4so2115550ybp.6 for ; Wed, 06 Jan 2021 00:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=gOpf+Jx8dHtQbpyIAsLe23OnBClqrxM/wE9R/i5PuOg=; b=aoyJPqJ3oKmdCmuB4X4nGUa4x2VuhKT7kDIm5k9uofGaeWbBniHjeoVMmFWJjAktRv Ud8kXsFUyufs9iWGHFiWfTgVb1nt25A21SldOHPh0Qxt2CjC47tw/8W+RDtfOyW+2KcE Qxtl2XxlfT2N9GkoKLl5X9cWp4LMj2o8bgPBdO9rHW08IA/CJUace+lo90h3MYCrGEgU EMAYHfGCEs9tD+o0DI3gTWOfY40PUihE/kMpGhvTvn+GDIAAytc1TBn/C+IOv1QG1sx0 Bo9EP0UR4V5xO1XGLVXEI71GlwNJMYIhtEWC8/t2rTjb44yfzRbrWpGHozbV1DvrUV9h qs1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=gOpf+Jx8dHtQbpyIAsLe23OnBClqrxM/wE9R/i5PuOg=; b=lVSS1WJsLLzq+eKj7nlwZE5/Qm39EZMNnAjl0Yw/aAEIS42TINvOry981akaJ/5b6o Q4kplji7gXpBfqmIdy+D99JSbnQ5Lr9Z0iBDxZkpA5v3R4EijMfU6pNo038dimdq2scc SbeUMCfgBRh9oIrrMXGXRwKwbx9MT69obAouDApRNc/eGwNu14FmWnOAuxE0Bw+pSJO+ m8H9SLoWHT/oV7hrkRXJ8IwYVna2pHTeogqWGA3DHemMeUJRcrIs0/cVaqPsR7vUCaFf gVtrbpodhpKbtQHiJuYP1PzHcMUidhq6mzk5IwbUNAW/CB6tU21zoFm1qF92P0O3whFq ttKA== X-Gm-Message-State: AOAM531Vkht/fkJ5INy67hSDEcWrWAd/iH3gtfTQO06Jb5kUkmFnQPck i0fYgYIeLD1WbtjoCmmcGlDfkJYumBOjcbtWr7+aw0Mx97B2ZiAa X-Google-Smtp-Source: ABdhPJxavYXDyFpyIWVfePVGG4fYYRl5GiySNZUcYGJxSVSHPPQgQfwWJKlLfdAmaXjkhir0OhWcLU6fQni5ybpJ0/g= X-Received: by 2002:a25:c74e:: with SMTP id w75mr4449910ybe.520.1609922091839; Wed, 06 Jan 2021 00:34:51 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b35; envelope-from=hongyi.zhao@gmail.com; helo=mail-yb1-xb35.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127015 Archived-At: On Wed, Jan 6, 2021 at 4:33 PM Hongyi Zhao wrote: > > On the "Pick a font" UI, I select the following font and then "Save Options": > > "DejaVuSansMono Nerd Font Mono Book" Additional remark: with the font size set to 14. > > 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. > > BR, > -- > Assoc. Prof. Hongyi Zhao > Theory and Simulation of Materials > Hebei Polytechnic University of Science and Technology engineering > NO. 552 North Gangtie Road, Xingtai, China -- Assoc. Prof. Hongyi Zhao Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China