From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#44284: 27.1; with some Unicode font, scrolling upward with the mouse wheel actually scrolls downward when the cursor needs repositioning Date: Sat, 07 Nov 2020 10:29:17 +0200 Message-ID: <83r1p57eoy.fsf@gnu.org> References: <83y2jn8lqr.fsf@gnu.org> <20201030230035.GH27593@zira.vinc17.org> <20201031004617.GI27593@zira.vinc17.org> <20201031011350.GJ27593@zira.vinc17.org> <83r1pe975u.fsf@gnu.org> <20201031224324.GK27593@zira.vinc17.org> <20201101002430.GL27593@zira.vinc17.org> <83ft5tf3zr.fsf@gnu.org> <20201101173240.GO27593@zira.vinc17.org> <83a6w1ezwv.fsf@gnu.org> <20201101183458.GP27593@zira.vinc17.org> <834km8gbiv.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27444"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44284-done@debbugs.gnu.org To: vincent@vinc17.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 07 09:30:12 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 1kbJbv-00073p-MO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 09:30:11 +0100 Original-Received: from localhost ([::1]:51124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbJbu-0001Hd-F3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Nov 2020 03:30:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41942) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kbJbn-0001Gh-7S for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 03:30:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46354) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kbJbm-00044y-TB for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 03:30:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kbJbm-0004mB-Pe for bug-gnu-emacs@gnu.org; Sat, 07 Nov 2020 03:30:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Nov 2020 08:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 44284 X-GNU-PR-Package: emacs Mail-Followup-To: 44284@debbugs.gnu.org, eliz@gnu.org, vincent@vinc17.net Original-Received: via spool by 44284-done@debbugs.gnu.org id=D44284.160473776618286 (code D ref 44284); Sat, 07 Nov 2020 08:30:02 +0000 Original-Received: (at 44284-done) by debbugs.gnu.org; 7 Nov 2020 08:29:26 +0000 Original-Received: from localhost ([127.0.0.1]:57899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbJbC-0004ks-HX for submit@debbugs.gnu.org; Sat, 07 Nov 2020 03:29:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kbJbA-0004kf-1P for 44284-done@debbugs.gnu.org; Sat, 07 Nov 2020 03:29:24 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:55187) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kbJb4-0003px-CA; Sat, 07 Nov 2020 03:29:18 -0500 Original-Received: from [176.228.60.248] (port=1879 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kbJb3-0007uq-8q; Sat, 07 Nov 2020 03:29:18 -0500 In-Reply-To: <834km8gbiv.fsf@gnu.org> (message from Eli Zaretskii on Sun, 01 Nov 2020 20:47:04 +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:192818 Archived-At: > Date: Sun, 01 Nov 2020 20:47:04 +0200 > From: Eli Zaretskii > Cc: 44284@debbugs.gnu.org > > > Alternatively, Emacs could use some heuristic: if extents.y_bearing > > is very close to an integer, assume that it should be this integer. > > This is rather ugly as this might yield unexpected results in some > > applications, but would this be OK in Emacs? > > It would be okay, I think: we have a few kludgey workarounds for > similar issues in other libraries. > > I thought about something like using ceil (VALUE - 1/128) or maybe > even 1/256, on the assumption that the original integer value cannot > be of a greater granularity (the non-Cairo code uses 1/64). No further comments, so I pushed such a fix to the master branch, and I'm closing this bug report. Many thanks for your help in debugging this problem.