From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: State of NS port Date: Sun, 13 Jan 2013 15:09:25 +0100 Message-ID: <0DAA2EAD-18D8-461B-BF9E-F297CF50C53A@swipnet.se> References: <69E12347-B799-48E4-AE1A-115365CEA4C8@gmail.com> <22C1B7A8E2294F08983ACE6BA77A7346@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358086193 27827 80.91.229.3 (13 Jan 2013 14:09:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Jan 2013 14:09:53 +0000 (UTC) Cc: Chris Zheng , emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 13 15:10:11 2013 Return-path: Envelope-to: ged-emacs-devel@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 1TuOGI-0008Us-NI for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2013 15:10:10 +0100 Original-Received: from localhost ([::1]:55292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuOG2-000550-DO for ged-emacs-devel@m.gmane.org; Sun, 13 Jan 2013 09:09:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuOFu-00054l-GG for emacs-devel@gnu.org; Sun, 13 Jan 2013 09:09:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TuOFf-0001uf-Kq for emacs-devel@gnu.org; Sun, 13 Jan 2013 09:09:46 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:37253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TuOFf-0001tz-Dt for emacs-devel@gnu.org; Sun, 13 Jan 2013 09:09:31 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id 6A398C239 for ; Sun, 13 Jan 2013 15:09:28 +0100 (CET) Original-Received: (qmail 21463 invoked by uid 89); 13 Jan 2013 14:09:28 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 13 Jan 2013 14:09:28 -0000 Original-Received: from anon-174-214.vpn.ipredator.se (anon-174-214.vpn.ipredator.se [93.182.174.214]) by coolsville.localdomain (Postfix) with ESMTPSA id 628497FA06C; Sun, 13 Jan 2013 15:09:27 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.1499) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 62.20.26.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:156304 Archived-At: Hello. A question, there might be smoothing on both left and right sides of a = glyph, for instance Y may do this. Don't you need to take the left side = into account? Jan D. 13 jan 2013 kl. 09:14 skrev YAMAMOTO Mitsuharu = : >>>>>> On Sat, 12 Jan 2013 11:49:09 +0800, Chris Zheng = said: >=20 >> I suffered this problem too, and it's because of two bug fixes after = I dig it awhile.=20 >> bug#11484: 23.4; Scrolling leaves traces of old text behind >=20 >> http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-05/msg00383.html >=20 > I could reproduce it with the *Mac port*, so the problem would be that > the reported metrics don't exactly reflect the actual display when LCD > font smoothing is turned on. I think I will apply the following > workaround in the next release of the Mac port. >=20 > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp >=20 > =3D=3D=3D modified file 'src/macfont.c' > *** src/macfont.c 2013-01-11 07:33:09 +0000 > --- src/macfont.c 2013-01-13 07:24:32 +0000 > *************** > *** 483,488 **** > --- 483,489 ---- > METRICS_SET_VALUE (metrics, descent, status);} while (0) >=20 > #define METRICS_NCOLS_PER_ROW (128) > + #define LCD_FONT_SMOOTHING_RIGHT_MARGIN (0.396) >=20 > static int > macfont_glyph_extents (struct font *font, CGGlyph glyph, > *************** > *** 579,584 **** > --- 580,587 ---- > / (CGFloat) WIDTH_FRAC_SCALE)); > break; > } > + if (bounds.size.width > 0) > + bounds.size.width +=3D LCD_FONT_SMOOTHING_RIGHT_MARGIN; > bounds =3D CGRectIntegral (bounds); > METRICS_SET_VALUE (cache, lbearing, CGRectGetMinX (bounds)); > METRICS_SET_VALUE (cache, rbearing, CGRectGetMaxX (bounds)); >=20