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 15:38:43 +0100 Message-ID: <1161959923.454219f3585f2@imp.hosting365.ie> References: <1161873024.4540c680436eb@imp.hosting365.ie> <1161939507.4541ca3376a11@imp.hosting365.ie> <1161950628.4541f5a41d35a@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 1162029061 26019 80.91.229.2 (28 Oct 2006 09:51:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2006 09:51:01 +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:51:00 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 1Gdkq5-0003NT-9m for ged-emacs-devel@m.gmane.org; Sat, 28 Oct 2006 11:50:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gdkq3-0001bc-HW for ged-emacs-devel@m.gmane.org; Sat, 28 Oct 2006 05:50:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GdSrH-0005tK-Ue for emacs-devel@gnu.org; Fri, 27 Oct 2006 10:38:55 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GdSr9-0005rt-PU for emacs-devel@gnu.org; Fri, 27 Oct 2006 10:38:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdSr9-0005rq-JT for emacs-devel@gnu.org; Fri, 27 Oct 2006 10:38:47 -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 1GdSr9-0000VM-Ba for emacs-devel@gnu.org; Fri, 27 Oct 2006 10:38:47 -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 k9REchcB008907; Fri, 27 Oct 2006 15:38:43 +0100 Original-Received: (from httpd@localhost) by web.hosting365.ie (8.12.11.20060308/8.12.11/Submit) id k9REchi5008904; Fri, 27 Oct 2006 15:38:43 +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 15:38:43 +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:61274 Archived-At: > Very interesting. The font I'm using already has Bold, Oblique > and Bold Oblique variants. So I think what's happening is that, when I > set the font to bold, Emacs uses the bold variant... and then somehow > thinks it doesn't support bold and tries to synthesize it. If I remove > the variants from \Windows\fonts and leave just the normal font, your > code works right. This sounds like what is happening, yes, and explains why the 2-bold file looked bold and antialiased --- it is the real bold font. It looks like my patch is correct, then, but that it's revealing a problem elsewhere, i.e., in the code that decides when "synthetic" bold is required? I'll dig into that if I have time, but if someone who knows that part of the code better beats me to it, so much the better.