From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6364: [PATCH] Use GetCharABCWidthsFloatW if GetGlyphOutlineW fails. Date: Tue, 26 Nov 2013 22:20:29 +0200 Message-ID: <83k3fuap9u.fsf@gnu.org> References: <8CCD3BEBEE756DD-DB8-DFB9@web-mmc-m08.sysops.aol.com> <713BA87B-E38A-4777-B054-E136A7C96EF9@tomseddon.plus.com> <83pppn9hjm.fsf@gnu.org> <3E4E896E-71DC-402F-A572-E65A4AB621FA@tomseddon.plus.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1385497336 18801 80.91.229.3 (26 Nov 2013 20:22:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 20:22:16 +0000 (UTC) Cc: 6364@debbugs.gnu.org To: Tom Seddon Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 26 21:22:21 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VlP9F-0006oH-Ul for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 21:22:18 +0100 Original-Received: from localhost ([::1]:60880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlP9F-000167-E9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 15:22:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlP96-00014y-Pd for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 15:22:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlP90-0000KJ-LZ for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 15:22:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlP90-0000J4-IS for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 15:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VlP90-0007y0-9K for bug-gnu-emacs@gnu.org; Tue, 26 Nov 2013 15:22: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: Tue, 26 Nov 2013 20:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6364 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: patch Original-Received: via spool by 6364-submit@debbugs.gnu.org id=B6364.138549726630548 (code B ref 6364); Tue, 26 Nov 2013 20:22:02 +0000 Original-Received: (at 6364) by debbugs.gnu.org; 26 Nov 2013 20:21:06 +0000 Original-Received: from localhost ([127.0.0.1]:46441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VlP85-0007wc-Go for submit@debbugs.gnu.org; Tue, 26 Nov 2013 15:21:05 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:62121) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VlP82-0007vx-J9 for 6364@debbugs.gnu.org; Tue, 26 Nov 2013 15:21:03 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MWW00L000DV2P00@a-mtaout20.012.net.il> for 6364@debbugs.gnu.org; Tue, 26 Nov 2013 22:20:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWW00LPU0HN0A30@a-mtaout20.012.net.il>; Tue, 26 Nov 2013 22:20:12 +0200 (IST) In-reply-to: <3E4E896E-71DC-402F-A572-E65A4AB621FA@tomseddon.plus.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:81011 Archived-At: > From: Tom Seddon > Date: Tue, 26 Nov 2013 19:39:37 +0000 > Cc: 6364@debbugs.gnu.org > > > Thanks, but can you please provide a reproducible test case, including > > the font where the slow scrolling happens? I don't see any fonts > > named in these bug reports. > > Certainly. I've uploaded some test cases to http://www.tomseddon.plus.com/.emacs/bug6364.tar.gz. Thanks, I will use that and see what I get. > > Are there other possibilities to fix this, without using > > GetCharABCWidthsFloatW? The problem with that function is that it is > > not available on Windows 9X (in the unicows.dll library), so this > > problem will be left unsolved on those systems. > > I couldn't find a good list when I was writing the code so I just went by DUMPBIN /EXPORTS and spotted it as export #158. (Don't ask me why I've got any copies at all on my Windows 7 PC! - I expect some program installed it just in case.) The export exists, but the function is a stub, not a real implementation, AFAIK. > I've found an official (if outdated-looking) list now. So if GetCharABCWidthsFloatW ends up your only objection, I'll update the code to use a function from the official list. Sorry, I don't understand what you mean. Which official list did you find, and what does it say about this?