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:25:44 +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="39471"; 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:26:23 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 1kxL0H-000AA1-UL for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Jan 2021 03:26:21 +0100 Original-Received: from localhost ([::1]:58100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxL0G-0002IW-VN for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Jan 2021 21:26:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxKzx-0002IB-BK for help-gnu-emacs@gnu.org; Wed, 06 Jan 2021 21:26:01 -0500 Original-Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:40588) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxKzu-0001Y5-M2; Wed, 06 Jan 2021 21:26:01 -0500 Original-Received: by mail-yb1-xb34.google.com with SMTP id b64so4744226ybg.7; Wed, 06 Jan 2021 18:25:57 -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=i3BG8OPZB4SBtf9gRtuXJsYXmij7S8O8nY3vUHgzWfE=; b=qjQTlHBenYwg9XlSScmrUCLSyZJz/rx++BTQc9JYo/lKu0UCGVmSM2p8rHleME8bGt FZ+TFn7xEA8g5baIsp/qZufMX3Auq8GwW+rHwmsl5gbb52IGTJAUickqg1oDp0qwZB1b NFt8q5KyC/CSsJukYwgWoM30fTkiwiyrtTTTB2C/DmofZZDjqj25Zlkeg5qvgNZcoz/t uZX72MYxFw/fSOqo1W1HVxeaDa+To84MoD9JIErkli2KQfimk3fnjMG1iKVv+sDsDApk 8+2tKsaRh/APnSrwbD2EANQnjnHOYQKLjw97iApKDLlCP+KG+OhHyqC5wLiBi7OazVRB xBaQ== 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=i3BG8OPZB4SBtf9gRtuXJsYXmij7S8O8nY3vUHgzWfE=; b=LkLcTgHTyoeERASgpEWL+OMHmPyStFegMHKN7AQxGsu7F/XdKQDSTfLaEWX6gHPyak DsBsZMQ2uPFGhAhJoms1rARJDqynMvsAzXqvOzZNbC5niu5Y+r+i3N3djTI27uyzramz nelfinyuiLiYmQDAtiGQJD92lynPu2KgcSVQlvQd1jp4BTFRM6/NwKZo7B/ZcZSnmNhr ycei8k1U1kfhXMQwr8sjDWuKcnDKtCDsHqAbaO6zNibhCbPZAyO/zJAlDIdhcs353dk/ +RzS4J7btW8Ej8HDuh94ZxSXFghHCeH7EoWqDrLurBOG9m5p3ukWXrX/9CdEeuQKnjVc LXwg== X-Gm-Message-State: AOAM532+U11TDq3aNHIVPouOMlH1Kisr3fpjgXF0gGDF/EfCUoozVsXu fYiEuXHkfxBi2wVoJgHZ4sT9DoHg096KXYa7qeZ4fkPw8p97is1b X-Google-Smtp-Source: ABdhPJyXwKF3HZo4+bKvj9V1Ea9BIKVd8p2KKIe6WpZnyTKG7patLQdomFEEO4ijGR0iHdHNi5WaYFKrZTq0knnhoA8= X-Received: by 2002:a25:a28d:: with SMTP id c13mr10348571ybi.420.1609986356212; Wed, 06 Jan 2021 18:25:56 -0800 (PST) In-Reply-To: <834kju2iid.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::b34; envelope-from=hongyi.zhao@gmail.com; helo=mail-yb1-xb34.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:127029 Archived-At: 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 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