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.bugs Subject: bug#49797: 28.0.50; Setting face to custom fontset doesn't work Date: Sun, 1 Aug 2021 11:18:50 -0400 Message-ID: <1A3277D8-66B3-4541-AD24-78E55C06A99D@gmail.com> References: <79E99CB7-5D9E-4222-899B-5D05C9B84AF3@gmail.com> <83eebdog5o.fsf@gnu.org> 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="20373"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Kenichi Handa , 49797@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 01 17:19:12 2021 Return-path: Envelope-to: geb-bug-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 1mADF9-00059d-HI for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 17:19:11 +0200 Original-Received: from localhost ([::1]:49632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mADF8-0000ZQ-1j for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Aug 2021 11:19:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mADF0-0000ZG-Ni for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2021 11:19:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53555) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mADF0-0005OV-GF for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2021 11:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mADF0-000398-Bh for bug-gnu-emacs@gnu.org; Sun, 01 Aug 2021 11:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Aug 2021 15:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49797 X-GNU-PR-Package: emacs Original-Received: via spool by 49797-submit@debbugs.gnu.org id=B49797.162783114012086 (code B ref 49797); Sun, 01 Aug 2021 15:19:02 +0000 Original-Received: (at 49797) by debbugs.gnu.org; 1 Aug 2021 15:19:00 +0000 Original-Received: from localhost ([127.0.0.1]:36868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mADEy-00038s-2o for submit@debbugs.gnu.org; Sun, 01 Aug 2021 11:19:00 -0400 Original-Received: from mail-qv1-f54.google.com ([209.85.219.54]:40513) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mADEu-00038c-NS for 49797@debbugs.gnu.org; Sun, 01 Aug 2021 11:18:58 -0400 Original-Received: by mail-qv1-f54.google.com with SMTP id s11so7741526qvz.7 for <49797@debbugs.gnu.org>; Sun, 01 Aug 2021 08:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Q8Wei07Npdm+ToMAHby+xpYQQifGw9atHQYHPnQJ/Zc=; b=syVlXZRx6cl1/l0gji6Gt6ODqRMk3OEkZ/fD0rbdTIXQsDwJu2lfz8LgQSR2rMWx4Y 4i0y1SYvDA4iGj9IjoyEdaxvEmYbUtSGeHBbAX58C7QAHTNVNvcO4hX1UEjYUP65nSEN rJ1GHN3uqKYMY4uYIIDAPpnd3J7lociOHD9pLgoglE70Q4ZSaIKkXFDQDOcmM47O2WWL mp3Fglredr3qJYEHAQcViXVfzSbkQ4v0SIzb5Ki0uh3RlHn3UK9Q9Xtwvfw3xYX9XqBU n7BLk8JBG+J/+mU0+i3W6r/r9N3pwChzRO1j8IQ3uCWk8n6q+Xe3lHFfzUP8fgxDPj9o gXZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Q8Wei07Npdm+ToMAHby+xpYQQifGw9atHQYHPnQJ/Zc=; b=KDWjYsdwp9geRc/4OAX+av8aof0/x23M94LJn6cO82hEikmdIoqoOeKB0qToWKOC10 2EkY+gmbrAd0271+Dcpg5sD/7ZpDwPWH7ZDqk6POTe7pnLL5/5jEApuRfYUXdNlB0R4n 2WXtOD0WlL1foWU9QqaIzydhRW7OcZqm2bbojrz6p7o/nBX0agBChP0L+YTP78P7P19o DYS+1tSmMCax2bKyw53JOZZVxnIqVWCcUMEOoPNmZGwnxpHTS8wvxjjHXs8R92ESY9tu V1c8IXcuxUhzHLypzIKGql1fyE8ISql5lZ4ZYj1LNeYSJHgZ8REuAfCma3swg0oUUb/+ mkSQ== X-Gm-Message-State: AOAM5305jTx3GCa0X48cahrb2PE02nOttChJH+DS8oCgf3icZNFkp2l3 zEnetjmVgU/M5Y06onQTd6E= X-Google-Smtp-Source: ABdhPJyPLcIJv0sDRzOKH6jKAEIRGZ4G0zp93gUmhmY6+IiVujleMjmt6DlozJio109HWp4WOz965A== X-Received: by 2002:ad4:4972:: with SMTP id p18mr950999qvy.26.1627831131192; Sun, 01 Aug 2021 08:18:51 -0700 (PDT) Original-Received: from 2603-7080-0302-635e-b063-9d3b-261c-23ba.res6.spectrum.com (2603-7080-0302-635e-b063-9d3b-261c-23ba.res6.spectrum.com. [2603:7080:302:635e:b063:9d3b:261c:23ba]) by smtp.gmail.com with ESMTPSA id j7sm3272902qtx.39.2021.08.01.08.18.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Aug 2021 08:18:50 -0700 (PDT) In-Reply-To: <83eebdog5o.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.60.0.2.21) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:211045 Archived-At: >=20 > Personally, I lack a clear understanding of how user-defined fontsets > are supposed to be used instead of the standard fontsets. Is that > only by using the :font attribute of a face? The documentation of face attributes doesn't mention it for some reason, = but I found another face attribute :fontset when reading the code. IIUC, = according to realize_gui_face, when Emacs realize a face, it combines = the fontset in :fonset attribute with the :font attribute (and other = font attributes like :family, etc): the :fontset one is used as the base = fontset, and we make ascii characters in the base fondest to use the = font specified in the :font attribute (combined with other font = attributes). This is done by make_fontset_for_ascii_face (the name is = slightly misleading). But in reality, it doesn=E2=80=99t seem to work like that; changing the = default fontset seem to have an effect but changing custom fontset = doesn't. I found this function fontset_font, in it we first find a font = from the custom fontset, then try to find a font in the default fontset. = So if the default fontset has an effect but the custom one doesn=E2=80=99t= , maybe the code that finds font in the custom fontset has problem. = That=E2=80=99s my uneducated conjecture, so take with a grain of salt. Yuan