From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.help Subject: Custom font sets doesn't fully work Date: Fri, 30 Jul 2021 21:14:23 -0400 Message-ID: <04E9C637-B795-4E1D-9B6B-044B66F8D375@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24610"; 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 Sat Jul 31 03:15:10 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 1m9dan-0006Hs-F0 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 31 Jul 2021 03:15:09 +0200 Original-Received: from localhost ([::1]:59784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9dal-0005qD-U4 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 30 Jul 2021 21:15:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54332) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9da8-0005q3-DR for help-gnu-emacs@gnu.org; Fri, 30 Jul 2021 21:14:28 -0400 Original-Received: from mail-qk1-x72a.google.com ([2607:f8b0:4864:20::72a]:33376) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9da6-0000TJ-RT for help-gnu-emacs@gnu.org; Fri, 30 Jul 2021 21:14:28 -0400 Original-Received: by mail-qk1-x72a.google.com with SMTP id t66so11269717qkb.0 for ; Fri, 30 Jul 2021 18:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=D5ILoau3d9TIWnyIVOZGE2gtb3jT4mNq27bxunPE5Qg=; b=cWeTR5TFbSaHRRdH+MMttx1+HXN5AkmL+Jk5OmrwrM9MONtoVxJCPEk931Gix7Lnxb UD3gr4t/ieMrNHx17RoZvCC2QrgWW5eHjBOq5kWZTEBhy6vYu6EbZmec/HGgN/AJ5Cih TKzVNy0CR/GK1Dbux35gIaNasoR6mEmVkONAcdNp/HkxGofrmY/MPaJR5U+xw5W0J7R4 5uL0Uoj4fyPizgIjyaIjC5c4YAXK2+FEayhR7uefVOSW6WhGWfsJhmIK6FAen3BeqD2i v621j3QyVnEIRveRWL9TqKxXY+HU6NDYOQbbYwtTiXn9NfEJrJGYe13qXIHpOqJ5Os65 gdPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=D5ILoau3d9TIWnyIVOZGE2gtb3jT4mNq27bxunPE5Qg=; b=H5t5aGzcS7dkXkOFuWdCv6aPE6hTCk8xi9NX+ZKOWAHkVgeEP0MSBXg2wv9NrmgHpC o1sGQAqGM6VX1bACLwZvMaOh5SD/DBp27++ITspJuHQQRTPRpexsUWkqcpedKQmSfvnr O0XVI+Kqlk2WHniAVCPLnSdwjMajXImNbLAimvhhuUabXLizbe1z/skGZ/zsDCyiCl9W 8UDLGmbsLb63ORib7Yc0v491VmRR68759ic5fuNYgcG3evDzoNopz5Kldsbu1wc4Hy2j 1uRX8erR+uzOh17Nl+NdLWA+EO6bDWIk0cKcZt+DelpP+QjQm9/foXdlwrWNBALDgDWL /NZg== X-Gm-Message-State: AOAM53141BTmQ3ZESo2FOq0/aEpfkJ7oiXXp/4lqNnNRWwt5mfNAduh3 W3+EmNQsZykB1ddQ+CN99RAQZywL6AKh8g== X-Google-Smtp-Source: ABdhPJyygyzDWyicpOIOoeu1R6qkqpGm7etCo+1HLGbwndZAKeBvY3JlEncLI7pqpOPwH8E0shxV5w== X-Received: by 2002:ae9:c119:: with SMTP id z25mr5163135qki.40.1627694065036; Fri, 30 Jul 2021 18:14:25 -0700 (PDT) Original-Received: from 2603-7080-0302-635e-c100-4f67-0a08-f5fb.res6.spectrum.com (2603-7080-0302-635e-c100-4f67-0a08-f5fb.res6.spectrum.com. [2603:7080:302:635e:c100:4f67:a08:f5fb]) by smtp.gmail.com with ESMTPSA id j5sm1911871qki.80.2021.07.30.18.14.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jul 2021 18:14:24 -0700 (PDT) X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::72a; envelope-from=casouri@gmail.com; helo=mail-qk1-x72a.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:132204 Archived-At: This is what I did (in emacs -q) (create-fontset-from-fontset-spec (font-xlfd-name (font-spec :registry "fontset-lunamono"))) (set-fontset-font "fontset-lunamono" 'latin (font-spec :family "SF Mono")) (set-fontset-font "fontset-lunamono" 'han (font-spec :family "Source Han Sans")) (set-face-attribute 'default nil :font "fontset-lunamono" :height 130) Now I expect Latin characters show in SF Mono, and Han characters show = in Source Han Sans. However, only Latin characters work right, Han = characters doesn=E2=80=99t use Source Han Sans. If I use fontset-default instead: (set-fontset-font "fontset-default" 'latin (font-spec :family "SF Mono")) (set-fontset-font "fontset-default" 'han (font-spec :family "Source Han Sans=E2=80=9D)) Both Latin and Han characters show in the right fonts. What gives? Yuan=