From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#24582: 25.1; liga incorrect work (dublicate) Date: Tue, 11 Aug 2020 15:55:13 +0200 Message-ID: <87h7t9uw1q.fsf@gnus.org> References: <1475666134.612387.746497785.7FCC6A56@webmail.messagingengine.com> 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="32682"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: hafner@tutanota.com, 24582@debbugs.gnu.org, Alan Third To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Aug 11 15:56:10 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 1k5Ul8-0008Kp-Dq for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Aug 2020 15:56:10 +0200 Original-Received: from localhost ([::1]:45536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5Ul7-0005GF-EX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 Aug 2020 09:56:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5Ul0-0005EV-0J for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 09:56:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57957) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k5Ukz-0007YW-LY for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 09:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k5Ukz-0002Pp-Ks for bug-gnu-emacs@gnu.org; Tue, 11 Aug 2020 09:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Aug 2020 13:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24582 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 24582-submit@debbugs.gnu.org id=B24582.15971541379270 (code B ref 24582); Tue, 11 Aug 2020 13:56:01 +0000 Original-Received: (at 24582) by debbugs.gnu.org; 11 Aug 2020 13:55:37 +0000 Original-Received: from localhost ([127.0.0.1]:41270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5Ukb-0002PS-0u for submit@debbugs.gnu.org; Tue, 11 Aug 2020 09:55:37 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:32774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k5UkX-0002EM-Vx for 24582@debbugs.gnu.org; Tue, 11 Aug 2020 09:55:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=8PMp3RAGXHYl1S0ad54DsLlJK5DibL9e2XFwv8EkVIk=; b=R+nWJHa6Bt3mXlT28qMwqCTCOG KftyMeExX5+TQCTEfypQp7rT4+gEqf4pboyO+rGPNgHtKZiDePblcD3TSMJzZwBDCpkISsxNYQUf6 8jy9HMIbzrTRO1xVEeqaBPCsgRWh/TnSlIZIQ1YmPFs4MoJqR3EFcYoOfpZ03iBEQl8Y=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5UkE-0003wT-I6; Tue, 11 Aug 2020 15:55:22 +0200 In-Reply-To: (YAMAMOTO Mitsuharu's message of "Fri, 07 Oct 2016 08:25:53 +0900") 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:184652 Archived-At: YAMAMOTO Mitsuharu writes: >> Please see the attached screenshot. >>> So the problem is text alignment due to display of characters such >>> as =E2=87=92, is that right? >> Yes > > I could reproduce it with Hasklig 11pt. Does the following patch work > for you? This was more than three years ago, but there was no followup. The patch still applies to Emacs 28, and it compiles and runs on Macos without any immediately adverse effects. Alan, does this patch look reasonable to you? > - WIDTH_FRAC_SCALE. For synthetic monospace fonts, they represent > + WIDTH_FRAC_SCALE. For monospace fonts, non-zero `width_frac' > + means `width_int' is further adjusted to a multiple of the > + (rounded) font width, and `width_frac' represents adjustment per > + unit character. For synthetic monospace fonts, they represent [...] > +/* If FONT is monospace and WIDTH can be regarded as a multiple of its > + width where the multiplier is greater than 1, then return the > + multiplier. Otherwise return 0. */ > +static int > +macfont_monospace_width_multiplier (struct font *font, CGFloat width) > +{ --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no