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: Fri, 8 Oct 2021 12:35:24 -0700 Message-ID: <1DD64762-3B61-45AF-A6A9-68F04CD20D46@gmail.com> References: <87y29k2h4z.fsf@gnu.org> <3B853424-9F63-4A6B-B7A9-2E3AB71986AC@gmail.com> <835yub4fj5.fsf@gnu.org> <8FD18262-3F40-4033-A49D-F6CEA89A3A31@gmail.com> <83sfxf2ry5.fsf@gnu.org> <1AF30098-F55E-48A7-A0D4-E529DFBA6895@gmail.com> <838rz62kx8.fsf@gnu.org> <890ABB11-65A7-4F52-8816-7FA90BED7961@gmail.com> <83zgrm0zqt.fsf@gnu.org> <219B3DA8-2E40-4BC1-8235-7330308F1737@gmail.com> <83y2760yec.fsf@gnu.org> <8B79C354-D63D-42F4-9910-72B3568315CD@gmail.com> <83fstcyt34.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) 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="8462"; mail-complaints-to="usenet@ciao.gmane.io" Cc: handa@gnu.org, 49797@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 08 21:36:19 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 1mYvfH-0001vu-1Y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Oct 2021 21:36:19 +0200 Original-Received: from localhost ([::1]:48162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYvfF-00046F-Mu for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Oct 2021 15:36:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYvf1-000461-Fa for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 15:36:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40367) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYvez-0003RU-SK for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 15:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYvez-0007iQ-Pr for bug-gnu-emacs@gnu.org; Fri, 08 Oct 2021 15:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuan Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Oct 2021 19:36:01 +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.163372173929629 (code B ref 49797); Fri, 08 Oct 2021 19:36:01 +0000 Original-Received: (at 49797) by debbugs.gnu.org; 8 Oct 2021 19:35:39 +0000 Original-Received: from localhost ([127.0.0.1]:51913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYvec-0007ho-Tb for submit@debbugs.gnu.org; Fri, 08 Oct 2021 15:35:39 -0400 Original-Received: from mail-qt1-f175.google.com ([209.85.160.175]:36738) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYveW-0007hV-7I for 49797@debbugs.gnu.org; Fri, 08 Oct 2021 15:35:38 -0400 Original-Received: by mail-qt1-f175.google.com with SMTP id b12so2519814qtq.3 for <49797@debbugs.gnu.org>; Fri, 08 Oct 2021 12:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gtFdPNYcEYVJ7IQBEN2heTCGt6JiKU/XOvHll3SghhM=; b=Ntmg+AR78Jfs0MY9fy9R1HnbFqMDcR/zstwtN4+VrC9oHW636LKTycm1HBMThAAPsn sd/UkmNoCB8go7pPWfU72H7O6tB2NJueA4rPzE1A7A//TqPgjRWlplQujjF5XJLJaZk8 3jC6aCv5sfMU6CTHzQDxhtbjOFneiekJtxNsCI64pEkpf02rn3vcbcPua+J5uQSjKciH skqbhBpxY3cLq/Aq0Lb82msMIr/sO6EXxGL9tZcMW0N7hiH/0klmGNXobVwWagqnQRL3 p371ABdLp0FJoBQ4c0bQ2bHmkz36edDCP3FOM/2qCRtYd17qFEdpvhp5Mwk1T9NzYyxo Wb6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=gtFdPNYcEYVJ7IQBEN2heTCGt6JiKU/XOvHll3SghhM=; b=W/L/ZAZ7cqDOVMGFv30Sfeh6xi/OR1AIRMkG/N7e1tALsNoq18IoZacyTtNtME3rrv wnkzPMCpFRNX2+wp+vL0fu4C7F9RgzEx+W9rpCYdSuvH9/Pr33OWaGoayEHjjI6sfKvr 32hdHPQ/tsXaMtjvS5TmJGiVDLjh58WrCguZbyftlFCZ+MJ9BLhYdIFuYTrKSGcjQ7wJ Q1aWlB/FZwC/b5qzSCxqHit/drA930xwDpHzxSkmiTK2Da2SDCZVAQqviyNOfS4JXBd8 9I1HNIGxfNjmdeWrII719aS/e3QVxlfvBAtaWK6wriUBu/ABlcDIfmghm5zQOcM/KZtr ibtw== X-Gm-Message-State: AOAM531M/iPcZo2K46US4cGIbZIVE2hePiuzajNFarwLkanspQpUkOj2 iQNRxd4p74qZEA6q+C/IzlI= X-Google-Smtp-Source: ABdhPJywc+pphuvjKVrqctkCGlcz4UiK3UL+lCMKMwO0wx5wTdnGYmU8GnOsFcUliHqDa0FnxOXRBw== X-Received: by 2002:ac8:6147:: with SMTP id d7mr261385qtm.38.1633721726679; Fri, 08 Oct 2021 12:35:26 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c9f:7dc1:b929:f32b:71c7]) by smtp.gmail.com with ESMTPSA id v7sm242536qkd.41.2021.10.08.12.35.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Oct 2021 12:35:26 -0700 (PDT) In-Reply-To: <83fstcyt34.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) 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:216733 Archived-At: > On Oct 7, 2021, at 10:38 PM, Eli Zaretskii wrote: >=20 >> From: Yuan Fu >> Date: Thu, 7 Oct 2021 13:13:28 -0700 >> Cc: Kenichi Handa , >> 49797@debbugs.gnu.org >>=20 >>>> if (face->ascii_face->font) >>>> { >>>> XSETFONT (font_object, face->ascii_face->font); >>>> if (font_has_char (f, font_object, c)) >>>> return face->ascii_face->id; >>>> } >>>=20 >>> No, this is where we try to use the ASCII font for symbols and >>> punctuation characters. >>=20 >> You are right. >>=20 >>>=20 >>>> And what about the comment I mentioned? Did you read it? >>>=20 >>> Yes, but it has no relevance to the issue at hand. That whole part = is >>> about displaying symbol and punctuation characters. >>=20 >> It IMO reveals the writer=E2=80=99s intent that fontset can be used = to force a face to display certain characters with certain font. >=20 > I don't see how you arrived at that conclusion. What the above > snippet does is simply check whether the face's font used for the > ASCII characters (which is the default font of the face) is capable of > displaying the given symbol or punctuation character, and if so, it > uses that default font instead of consulting the fontset (where symbol > and punctuation characters could be assigned to a different font). > There's no reference or usage of any fontset in this code snippet. Maybe you are right. Yuan