From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#50951: 28.0.50; Urdu text is not displayed correctly Date: Tue, 06 Sep 2022 09:56:09 +0530 Message-ID: <87r10pb02m.fsf@gmail.com> References: <83mtnsc63i.fsf@gnu.org> <83sfxjbox7.fsf@gnu.org> <87pmsnwlvo.fsf@igel.home> <837devbgrl.fsf@gnu.org> <8335pjbewj.fsf@gnu.org> <83zgrr9zn1.fsf@gnu.org> <87edwq7srx.fsf_-_@gnus.org> <87y1uy6mn5.fsf@zohomail.eu> <83wnaij974.fsf@gnu.org> <87tu5m6jrw.fsf@zohomail.eu> Mime-Version: 1.0 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="15693"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: rahguzar@zohomail.eu, eliz@gnu.org, larsi@gnus.org To: 50951@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 06 06:29:51 2022 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 1oVQDf-0003vM-A1 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 06:29:51 +0200 Original-Received: from localhost ([::1]:54684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVQDe-0005zD-DV for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Sep 2022 00:29:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46114) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVQAy-0000p9-At for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 00:27:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVQAx-0007Ly-1C for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 00:27:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVQAw-0007UE-HA for bug-gnu-emacs@gnu.org; Tue, 06 Sep 2022 00:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Sep 2022 04:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50951 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo X-Debbugs-Original-To: Rah Guzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" X-Debbugs-Original-Cc: Rah Guzar , Eli Zaretskii , larsi@gnus.org, 50951@debbugs.gnu.org Original-Received: via spool by 50951-submit@debbugs.gnu.org id=B50951.166243838128710 (code B ref 50951); Tue, 06 Sep 2022 04:27:02 +0000 Original-Received: (at 50951) by debbugs.gnu.org; 6 Sep 2022 04:26:21 +0000 Original-Received: from localhost ([127.0.0.1]:49335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVQAH-0007Sz-21 for submit@debbugs.gnu.org; Tue, 06 Sep 2022 00:26:21 -0400 Original-Received: from mail-pf1-f196.google.com ([209.85.210.196]:39754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVQAF-0007Sl-1b for 50951@debbugs.gnu.org; Tue, 06 Sep 2022 00:26:19 -0400 Original-Received: by mail-pf1-f196.google.com with SMTP id o126so1177119pfb.6 for <50951@debbugs.gnu.org>; Mon, 05 Sep 2022 21:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=E1GZWqEIYZWkA9SbScsMADDX/7Px5gOpJ0mkdcUQIVw=; b=LSybWpgdvWkdE4BpQD5H4qzqM5UyNoSZG/RiVaw7lX+q/58nuzbO+SKKcFo3obOz4B c7vEEkktInFXPV6K/GWmNu/DId2OQ7ODdyC14xe9ZgNfRN7fRYbsxg8pkgB7Ef9+RxzN 14gJ6Znytbpb7KQPTePDsXJDDwoyyEhsNH0+8Vc01RLcVqOLmSGLxJxISixQYjnaVCQQ 3x9SdHgE6BbVLFLhMuZEl2CEPRHWnMaCvaFxqe+WI1xKNxftqCshqDzbz8wV4beIZtnK vQdf7beCkhu/SEFPZwl3O0MlSPQNUpjPs+1aT27fviALKzgJFSlStdO1G/swk769oGVQ pgzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date; bh=E1GZWqEIYZWkA9SbScsMADDX/7Px5gOpJ0mkdcUQIVw=; b=BTPdVxLMAd39o0WPqz1K+R4xC3fsMnBEWSDIaw5E8NFiSmfpccFIlF+pkwAg9VciM5 OGCZ1c1E40m2rKZ+18JXXe1YQ4GkUJghbXk34srCdgYhAeeQ3uYDmZAmy4g8yTkoSlyY VcT5tRSoINyTjoCIawRyRU0trWHyHd0gaLW8lmMXrUpg2vps2nxvfoQlbrvaigi4a1y9 MPZ/flwLtIbnA6I64ibK3/57cIW0ITKKv8Qx6CQCt9u6cuK6Q0EmQyptq3j+qVEkvHA9 Gjh7wOjlN3O8UfYc/vNZwFxRefyWFZYlJS74y2igPAyBIslrDXWuWfMP/aI65He2u3oL wWXA== X-Gm-Message-State: ACgBeo2K9V7USzYwwaLShfkxYCHy7deFOzZMnD5p/JCHNOlUIpKaNBJG Ing+b0kq3iXgksfP1PR7Xfo= X-Google-Smtp-Source: AA6agR7IFuYNRCZdnM0m3PKUcdRwcTQtogaViL8RTxnLXM5dMxXLW5kQry/hyabnt4EWTCsNMC/xcQ== X-Received: by 2002:a65:4644:0:b0:42a:dfb6:4e80 with SMTP id k4-20020a654644000000b0042adfb64e80mr44109996pgr.262.1662438373245; Mon, 05 Sep 2022 21:26:13 -0700 (PDT) Original-Received: from localhost ([118.185.152.162]) by smtp.gmail.com with ESMTPSA id k9-20020a170902ce0900b001769e6d4fafsm4532503plg.57.2022.09.05.21.26.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 21:26:12 -0700 (PDT) In-Reply-To: <87tu5m6jrw.fsf@zohomail.eu> (Rah Guzar via's message of "Mon, 05 Sep 2022 15:03:47 +0200") 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:241618 Archived-At: [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE=9A= =E0=AF=86=E0=AE=AA=E0=AF=8D=E0=AE=9F=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0= =AF=8D 05, 2022] Rah Guzar via "Bug reports for GNU Emacs, the Swiss army k= nife of text editors" wrote: > Hi Eli, > Eli Zaretskii writes: > >> It is unclear to me why this conclusion. Emacs uses HarfBuzz, and the >> only factor that could affect that, apart from selecting the font, is >> the setting of the current-iso639-language variable, which AFAIR >> Rahguzar tried setting with no success. > > At your suggestion, I tried hb-view and it renders Noto Nastaliq fine. > Similarly Libre Office which also uses harfbuzz as far as I understand, > also renders it fine. Which is why I said that the problem is limited to > emacs. My understanding of font rendering is non-existent but visually > what seems to happen is that emacs displays all the individual atoms > (glyphs?) but it doesn't know how to position them relative to each > other so they overlap and obscure each other. This positioning is > especially tricky in Nastaliq fonts since it can require moving all of > up, down, left, right. The big fonts that emacs render correctly, take > care of this by prepackaging all these combinations of characters that > require anything other than right to left movement as separate shapes. To my ears, this sounds an awful lot like bug#54646 where I faced similar font clipping issues with Noto Serif Tamil (and other Tamil fonts). The issues with clipping and other glyph placement issues went away when I used the Xft+Harfbuzz backend, perhaps that might fix your issue as well? But you might trade crisp font rendering for a slightly blurry one though; in my case it was a trade-off I had to make.