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: Sun, 01 Nov 2020 19:43:12 +0200 Message-ID: <83a6w1ezwv.fsf@gnu.org> References: <20201030203453.GF27593@zira.vinc17.org> <20201030205702.GG27593@zira.vinc17.org> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3708"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44284@debbugs.gnu.org To: Vincent Lefevre Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 01 18:44:11 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 1kZHOj-0000pz-D0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 18:44:09 +0100 Original-Received: from localhost ([::1]:59094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZHOi-00025O-8Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Nov 2020 12:44:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kZHOc-000252-KT for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2020 12:44:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55085) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kZHOc-000671-BI for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2020 12:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kZHOc-00038z-9v for bug-gnu-emacs@gnu.org; Sun, 01 Nov 2020 12:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Nov 2020 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44284 X-GNU-PR-Package: emacs Original-Received: via spool by 44284-submit@debbugs.gnu.org id=B44284.160425262012051 (code B ref 44284); Sun, 01 Nov 2020 17:44:02 +0000 Original-Received: (at 44284) by debbugs.gnu.org; 1 Nov 2020 17:43:40 +0000 Original-Received: from localhost ([127.0.0.1]:38398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZHOF-00038I-VG for submit@debbugs.gnu.org; Sun, 01 Nov 2020 12:43:40 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kZHO6-00037x-4W for 44284@debbugs.gnu.org; Sun, 01 Nov 2020 12:43:38 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58122) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kZHO0-00064R-OM; Sun, 01 Nov 2020 12:43:24 -0500 Original-Received: from [176.228.60.248] (port=3734 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kZHO0-0000f1-3P; Sun, 01 Nov 2020 12:43:24 -0500 In-Reply-To: <20201101173240.GO27593@zira.vinc17.org> (message from Vincent Lefevre on Sun, 1 Nov 2020 18:32:40 +0100) 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:192422 Archived-At: > Date: Sun, 1 Nov 2020 18:32:40 +0100 > From: Vincent Lefevre > Cc: 44284@debbugs.gnu.org > > When the cache is filled with > > cache->ascent = ceil (- extents.y_bearing); > > extents.y_bearing (whose type is double) is equal to: > > Font size 13: -0x1.6000000000001p+3 ≈ -11.000000000000002 > Font size 14: -0x1.8p+3 = -12 > > With ceil(), 11.000000000000002 rounds to 12, while the expected value > is 11. A rounding issue, as I guessed at > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44284#29 Thanks. Do you have a suggestion for a fix?