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: Thu, 7 Jan 2021 10:27:34 +0800 Message-ID: References: <834kju2iid.fsf@gnu.org> 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="6796"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 07 03:28:15 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 1kxL27-0001h6-AG for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jan 2021 03:28:15 +0100 Original-Received: from localhost ([::1]:58944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxL26-0002is-CG for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 21:28:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxL1g-0002ih-3k for help-gnu-emacs@gnu.org; Wed, 06 Jan 2021 21:27:49 -0500 Original-Received: from mail-yb1-xb30.google.com ([2607:f8b0:4864:20::b30]:35786) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxL1e-0002DH-FC; Wed, 06 Jan 2021 21:27:47 -0500 Original-Received: by mail-yb1-xb30.google.com with SMTP id u203so4777147ybb.2; Wed, 06 Jan 2021 18:27:45 -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 :cc; bh=bgc5J/Y1o3ZesRqx5uLfSXAGF9q+DzqFVaEIvQf5bo4=; b=f5aGpnz+uEdkZ4u/p6oBJ4f0mkf7NoldNbF0J5xnlfabLlboTV+jof/uFw9C7CsLhp 97mKwGCSm6fjO4+uRel7Oc1QFIx+wOSZHUe6tKogpP1jsfaZZoXfeKpvv5BYgLLgtkef H1Qla5AQl/H3jYLV+YKMkmoNaIL50dFgHY1OwJMAxrMOLxdU5OBHOAuRhoUcFbr9zEiZ 0UcCVxdyIQKP6No/F9k4TSbHX2FZ2Wz3aRe+wo95Rws/NMZhuFY256GzWveQqPI5vXT6 YsUrQwIOBwXVm4zwExfSkbqXCqWjHRlSf5+xKeFF1z63+3MxdMf6cgcBbv2ogtnDLdn0 Ln+w== 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:cc; bh=bgc5J/Y1o3ZesRqx5uLfSXAGF9q+DzqFVaEIvQf5bo4=; b=qmowc5IWetL8nvBy2CxCmrKkiKQO9CDWz0JZY/Rm399a+D1MIb4Q50wSRfD1/PKfIP w18A6aHR1qhZJVsSF+K3N+kWaAipRH1+2aLpVBmB6F36RYFBjZskvCT9I0u8XIGPAU7m lu0gWedKcXzr1QclYRsWie8Bny82y10lPXBU6i5O6NcgMm4U3Mu9sJRc+I3JCzNV/naf cf7zeYDqvbiX6vvjasWBAoS0VuVxPa5TozXmoS44xzq+pOQirRRx8KCXGn5VgUHx/SYi SFEkdCbhqdZgLDtJZXThHZCugY383IbshM7SnRWIi6zyfX8oFsRuoOKaYy7RkKFahm7b yBWQ== X-Gm-Message-State: AOAM530FRbqAKxuMC8repvdZYm1mm7qpw5XhtTGTITxeaLbQTVgHNvUL zvP6TuYPTZtu7MDMir1ZBGQM4+rUOpaYPnFsDznIg1ezoBmy/GzE X-Google-Smtp-Source: ABdhPJxIXRtiFe6G+W2/z4gCR6A1v/5txTFHO3tFeHfIRhPks3eFrgQxNIkS9NEcV1172zMkrVtHfJrxfwC9JjUzOLE= X-Received: by 2002:a25:1386:: with SMTP id 128mr10029344ybt.374.1609986465058; Wed, 06 Jan 2021 18:27:45 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::b30; envelope-from=hongyi.zhao@gmail.com; helo=mail-yb1-xb30.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:127030 Archived-At: On Thu, Jan 7, 2021 at 10:25 AM Hongyi Zhao wrote: > > On Wed, Jan 6, 2021 at 11:30 PM Eli Zaretskii wrote: > > > > > From: Hongyi Zhao > > > 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 Theory and Simulation of Materials Hebei Polytechnic University of Science and Technology engineering NO. 552 North Gangtie Road, Xingtai, China