From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben North Newsgroups: gmane.emacs.devel Subject: Re: Patch: overstrike/bold in Windows build Date: Fri, 27 Oct 2006 13:03:48 +0100 Message-ID: <1161950628.4541f5a41d35a@imp.hosting365.ie> References: <1161873024.4540c680436eb@imp.hosting365.ie> <1161939507.4541ca3376a11@imp.hosting365.ie> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1162028984 25777 80.91.229.2 (28 Oct 2006 09:49:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2006 09:49:44 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 28 11:49:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gdkou-000397-DA for ged-emacs-devel@m.gmane.org; Sat, 28 Oct 2006 11:49:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gdkot-0000BK-Ue for ged-emacs-devel@m.gmane.org; Sat, 28 Oct 2006 05:49:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GdQRK-0004bA-Io for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:03:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GdQRE-0004Xf-EU for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:03:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdQRD-0004XE-KV for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:03:51 -0400 Original-Received: from [82.195.128.192] (helo=web.hosting365.ie) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GdQRC-0005c9-Dm for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:03:50 -0400 Original-Received: from web.hosting365.ie (localhost [127.0.0.1]) by web.hosting365.ie (8.12.11.20060308/8.12.11) with ESMTP id k9RC3maV024208; Fri, 27 Oct 2006 13:03:48 +0100 Original-Received: (from httpd@localhost) by web.hosting365.ie (8.12.11.20060308/8.12.11/Submit) id k9RC3mZK024206; Fri, 27 Oct 2006 13:03:48 +0100 Original-Received: from mm3023.london1.eu.level3.net (mm3023.london1.eu.level3.net [212.187.194.10]) by imp.hosting365.ie (IMP) with HTTP for ; Fri, 27 Oct 2006 13:03:48 +0100 Original-To: Juanma Barranquero In-Reply-To: User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 212.187.194.10 X-Mailman-Approved-At: Sat, 28 Oct 2006 05:45:55 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61273 Archived-At: Juanma Barranquero wrote: > I've tested your patch in a setup which *doesn't* suffer the problem, > and the results are a little weird. Thanks for trying this out and providing the resulting PNGs. > The 1-* set of images is for Lucida Console. These look as I would expect in both the -bold and -patched images. 1-bold show the doubled left column of the starting "w", then every other character is just shifted right one pixel. 1-patched correctly "OR"s them together. (I haven't checked pixel-by-pixel, but it looks like that is what's happening.) > The 2-* set is for a font which I did once by adding the euro sign to > a font whose name I've forgotten (perhaps Lucida Sans Typewriter). > That's the one I use everywhere; it looks OK on desktop computers, but > on the laptop it shows the problem you're trying to fix. One idea: Is the 2-* set made with a BDF font? That would go through a different code-path, although I haven't fully got to grips with those details. It looks like 2-bold is already doing some sort of antialiasing, despite the fact that in the unpatched code, it looks like the background-mode is OPAQUE for the one-pixel-shifted rendering. Perhaps there's some interaction with what antialiasing and/or ClearText (on laptops?) is specified in the font and/or system-wide? As you can tell, I've only started looking at this code in the past day or two so don't really know what I'm doing. I'm not sure how much time I'll have to hack on this, but if you send me the font used in 2-* and relevant settings (maybe off-list), I can see if I can reproduce your results.