From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Amin Bandali Newsgroups: gmane.emacs.bugs Subject: bug#41005: problem with rendering Persian text in Emacs 27 Date: Tue, 21 Jul 2020 13:53:25 -0400 Organization: GNU Message-ID: <871rl4u54a.fsf@gnu.org> References: <831rmwc9ke.fsf@gnu.org> <35A46479-A62C-42FF-995B-B295FE3408C0@gnu.org> <08A9D65F-0C9C-4EE2-B3B9-2AA25BFFAD54@gnu.org> <878sh35j6f.fsf@gmail.com> <83y2p3as6c.fsf@gnu.org> <87pnae4nhx.fsf@gmail.com> <83ftbaaql5.fsf@gnu.org> <87eeqt3nww.fsf@gmail.com> <83bllxbuxq.fsf@gnu.org> <87mu3txcpz.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25606"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: valizadeh.ho@gmail.com, 41005@debbugs.gnu.org, Pip Cet To: Robert Pluim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 21 19:55:20 2020 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 1jxwU3-0006XK-Qz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jul 2020 19:55:19 +0200 Original-Received: from localhost ([::1]:37938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxwU2-00072b-PM for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Jul 2020 13:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34962) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxwSo-0005Ew-Nu for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2020 13:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57016) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxwSo-0002VL-DF for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2020 13:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jxwSo-0004jl-C1 for bug-gnu-emacs@gnu.org; Tue, 21 Jul 2020 13:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Amin Bandali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Jul 2020 17:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41005 X-GNU-PR-Package: emacs Original-Received: via spool by 41005-submit@debbugs.gnu.org id=B41005.159535401618176 (code B ref 41005); Tue, 21 Jul 2020 17:54:02 +0000 Original-Received: (at 41005) by debbugs.gnu.org; 21 Jul 2020 17:53:36 +0000 Original-Received: from localhost ([127.0.0.1]:40329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxwSN-0004j5-OH for submit@debbugs.gnu.org; Tue, 21 Jul 2020 13:53:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxwSL-0004ir-1Y for 41005@debbugs.gnu.org; Tue, 21 Jul 2020 13:53:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33157) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxwSF-0002Sf-NL; Tue, 21 Jul 2020 13:53:27 -0400 Original-Received: from [2607:fea8:3fe0:17d::7] (port=57496 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jxwSF-0006hN-2o; Tue, 21 Jul 2020 13:53:27 -0400 In-Reply-To: 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:183358 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Robert Pluim writes: >>>>>> On Tue, 21 Jul 2020 08:40:56 -0400, Amin Bandali s= aid: > > Amin> Hi Eli, Pip, > Amin> Thank you for working on this and fixing it on emacs-27 per the= reports. > > Amin> I have not been able to keep a close eye on GNU lists and track= ers for a > Amin> while now, but I was wondering if there's been any more progres= s/updates > Amin> on this issue on master? I sometimes read/write in Persian, an= d this > Amin> bug is quite an annoyance. :-) Changing the text scale (C-x C-= =3D) and/or > Amin> filling the paragraph (M-q) seems to sometimes help, but not al= ways; and > Amin> the issue remains. > > emacs-27 gets merged to master on a regular basis, and the relevant > commit is present in both: > > $ git branch --contains 30a7ee505a > * emacs-27 > + master > > Are you still seeing issues with the latest master? > > Robert > Ah, great point! This got me suspicious, so I went ahead and actually tried both emacs-27 and master in a few different configurations myself. It seems that with emacs-27, Xft rendering of Arabic/Persian text works just fine, like it used to: . However, using Cairo+HarfBuzz, on both emacs-27 and master the issue is still present: . Excerpts from M-x describe-char RET on a Persian character from Xft and Cairo+HarfBuzz are at and respectively, in case that might be useful somehow. The font used for typesetting the Persian text is Vazir v22.1.0, available from . My .Xresources configuration for the Xft and Cairo+HarfBuzz setups, the former only for emacs-27, and the latter for both emacs-27 and master: Emacs.FontBackend: xft,x=20=20=20 Emacs.font: Source Code Pro Medium:size=3D14 Emacs.FontBackend: ftcrhb,x Emacs.font: Source Code Pro Medium:size=3D14 Lastly, it might be worth mentioning that if I recall correctly, when using xfthb with emacs-27, I observe the same issue. Which may suggest that perhaps the issue is related to Emacs's HarfBuzz support. Hope this is useful. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJEBAEBCAAuFiEEObM8jZRIDS3cwqSYi0Sgzce5VvIFAl8XK5UQHGJhbmRhbGlA Z251Lm9yZwAKCRCLRKDNx7lW8vujD/40HwXSLP9dd1YGJQIJ6PtnOwJac9vEdska CpLnYMQwjt137753nWnGbvw3xi5GAHgTp+h5PxQDHYtVMTTnF2euGAtXpfI8w/OP K9crSQyVfuQmQrVz5wfj8GygKkOeQ4IxBkd1QPZ7nJE1eOdfA1duhZmqWCXgBSbp ByajV/Ifh10jnGdY3oAoqtzNOzI8/EQfWGHDwhaS85T+QKDaGGiQbb9DPudUN6Pa 6eFpk4B8RZ4yEsO15VG3B8o2YYyFrVshn1KNzsHrJXviPxdL2usDK/6ppDM4aC1q ZhCmIDXrahAljdM3HIqgmAZjE8uFeY8wNOLDs16+9trWRR/B3NuQjyeLN8pCrVkQ DnSRsPVVKsRRAsIHdr9Fa+Rs2nmkoGdTWUnjwMufFFyuZc6HWEDk1MIi5SNxFCvv oL7Z7wYSOAzpeS8OHOPmTP3G/FeimLnAoEn7apKFfI25xqSQK8CvKzcUIzMnDWgx i0TtvqzoAHrjMsuoEnG2N1Rzr64njjCy1yGpFsm57Ng26gAFxO0eEzZofcztnFf2 POeonzGthS3thevA+iZDj6GSJv2DRLqd3Zz3RAwhW7r8qHtpzUr0M19Jp4bxsXtx TufsCwetIrNzBQAF8MuA4FNGpjqGVqEyFmmA/Icx2/HagO3PVMGQeXltJQTLYVh8 tE/x4mpIyQ== =5Swz -----END PGP SIGNATURE----- --=-=-=--