From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Anand Tamariya Newsgroups: gmane.emacs.devel Subject: Re: Incorrect glyph info in describe-char Date: Fri, 23 Jul 2021 10:33:06 +0530 Message-ID: References: <837dhi4y19.fsf@gnu.org> <83y29y3f0a.fsf@gnu.org> <83tukm3bom.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004f4fd405c7c35265" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15503"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jul 23 07:04:18 2021 Return-path: Envelope-to: ged-emacs-devel@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 1m6nMA-0003v5-A4 for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Jul 2021 07:04:18 +0200 Original-Received: from localhost ([::1]:53466 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6nM9-0001ET-Ab for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Jul 2021 01:04:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6nLI-0008If-Ce for emacs-devel@gnu.org; Fri, 23 Jul 2021 01:03:24 -0400 Original-Received: from mail-il1-x130.google.com ([2607:f8b0:4864:20::130]:43883) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6nLC-00059R-Q4; Fri, 23 Jul 2021 01:03:22 -0400 Original-Received: by mail-il1-x130.google.com with SMTP id 10so459641ill.10; Thu, 22 Jul 2021 22:03:18 -0700 (PDT) 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=REpzMlkOqUpMm1sfAAwaPoz7dGDDUJGWl5b/fV6UctU=; b=BllE9HO5xVXS1OXZLnfeLmSf5pj2Wfjo3IolSC754EDHdyOkErMeKcFwbDmkYRVacU UgNUg1zwFxIJGpGfp7jO+GP/7YiKJxGUoU+uixaGYC8vD5N6NQj1y9ZDH2lShGmoGa1z /Pd/2tNcOhD+Vjj5RNaM7k0wRvPj/gz2ddKLKfVBuFrASDczwOJ2DDll9PkSkYpygcbN lbv1LUFw5+jWCgYFFPXmiGhDPAdkoT3UKg4Nzs3OC6W1n/+4DQDiW8ZIskaMk7xNEdxR QIg9eR87RqRWHD13iBeN90zv7+M8Ou2RDdmIbbxT0kujYZID9oaqyRc/EAgRvVXc/pvZ OfIA== 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=REpzMlkOqUpMm1sfAAwaPoz7dGDDUJGWl5b/fV6UctU=; b=gG1ysHwdTnzNQ+u5wnOOimyttdFhnhtsE0H5dsPWk5BHWAzR9Jr4Ku5PP52DZxEqaH cP6K4KeHUCrI+ISmcovPksmOjflFUAvseHTCQ+Rn+QTeDHkb2LRDtOz1tls8sPzK/Lq1 kZ8ttCXChRN+b/7MpUz8HCAbcSwtIwymB+1EbXZ5IME3KwSVhicknfN0RP1h+c2Pbbi9 g5UkVRRIfTDzaEB8SLHgNgzYllucKAlXrm98W77LTgrwzjxPZvpeEECtj1sPFEEROCl1 Mip/hrKo5g6JdkBbe0IhH6r/V5m7O9lRI/bcFXdBr2hqIaNAwmdKV7K7kAd+y6vHfulg 9R9Q== X-Gm-Message-State: AOAM530PBNHFwSZGylDd6PCSHrmXfWds1r3CHK6XbkB3ou1uooYYvXBz sY6vIRztA1+sSw5HiTgHZ77giYKbvnyj7KoqKjNXhUXRkxs= X-Google-Smtp-Source: ABdhPJzETtrPUMYFqRFDi4khL+qxkT/mI4+nImxhBstCbE+X0kehKtyzSSRJr/2LkeycP+OvxHG6mqmmt5lv4HzXwtc= X-Received: by 2002:a92:3302:: with SMTP id a2mr2367825ilf.62.1627016597031; Thu, 22 Jul 2021 22:03:17 -0700 (PDT) In-Reply-To: <83tukm3bom.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::130; envelope-from=atamariya@gmail.com; helo=mail-il1-x130.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, HTML_MESSAGE=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: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271483 Archived-At: --0000000000004f4fd405c7c35265 Content-Type: text/plain; charset="UTF-8" > You did that only for a single character SHIN? But the image shows > that the entire string is displayed by a font that is not DejaVu Sans > Mono. And at least on my system, DejaVu Sans Mono doesn't have glyphs > for the Hebrew block, so when I tell Emacs to use DejaVu Sans Mono as > the default font, the Hebrew letters are displayed using a different > font. > > If you don't apply the text property, do you see the Hebrew text > displayed by DejaVu Sans Mono, or does Emacs use a different font for > it? And what does describe-char say about that if you don't apply the > text property? > > > Apparently, this is what is causing the issue. > > It could be, but I don't see how this could happen, by just looking at > the code involved in this. I'm probably missing something. > It is "emacs -Q". My default font is DejaVuSans Mono. Hence H is displayed using the same. The Hebrew text is using Linux Libertine Display O. For printing, I needed text with font variation. So I applied the text property for weight and slant - though it didn't change the appearance. After that, desc-char starts reporting as mentioned in OP. --0000000000004f4fd405c7c35265 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

You did that only for a single character SHIN?=C2=A0 But the image shows that the entire string is displayed by a font that is not DejaVu Sans
Mono.=C2=A0 And at least on my system, DejaVu Sans Mono doesn't have gl= yphs
for the Hebrew block, so when I tell Emacs to use DejaVu Sans Mono as
the default font, the Hebrew letters are displayed using a different
font.

If you don't apply the text property, do you see the Hebrew text
displayed by DejaVu Sans Mono, or does Emacs use a different font for
it?=C2=A0 And what does describe-char say about that if you don't apply= the
text property?

> Apparently, this is what is causing the issue.

It could be, but I don't see how this could happen, by just looking at<= br> the code involved in this.=C2=A0 I'm probably missing something.
It is "emacs -Q". My default font is DejaVuSans Mo= no. Hence H is displayed using the same. The Hebrew text is using Linux Lib= ertine Display O. For printing, I needed text with font variation. So I app= lied the text property for weight and slant - though it didn't change t= he appearance. After that, desc-char starts reporting as mentioned in OP. <= /div>
--0000000000004f4fd405c7c35265--