From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.devel Subject: Re: Antialiased text on X11 Date: Wed, 30 Mar 2005 21:42:34 -0500 Message-ID: References: <871xab1u3d.fsf-monnier+emacs@gnu.org> <423DFE79.2030004@swipnet.se> <7099f9bab5d23e8daa7f4918a6a201a9@swipnet.se> <87br921fa5.fsf@rocksteady.printf.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1112238675 18497 80.91.229.2 (31 Mar 2005 03:11:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 31 Mar 2005 03:11:15 +0000 (UTC) Cc: miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 31 05:11:11 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGq4t-0005TI-Kj for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 05:10:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGqLV-0000Ie-OI for ged-emacs-devel@m.gmane.org; Wed, 30 Mar 2005 22:27:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGqJM-0007la-I3 for emacs-devel@gnu.org; Wed, 30 Mar 2005 22:25:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGqJA-0007g3-Cj for emacs-devel@gnu.org; Wed, 30 Mar 2005 22:25:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGqJ7-0007bW-6j for emacs-devel@gnu.org; Wed, 30 Mar 2005 22:25:21 -0500 Original-Received: from [64.240.156.239] (helo=ore.jhcloos.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DGpgN-0005RP-F7; Wed, 30 Mar 2005 21:45:19 -0500 Original-Received: from lugabout.jhcloos.org (host-69-48-12-162.roc.choiceone.net [69.48.12.162]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "lugabout.jhcloos.org", Issuer "ca.jhcloos.com" (verified OK)) by ore.jhcloos.com (Postfix) with ESMTP id 16A281C36A; Wed, 30 Mar 2005 20:44:40 -0600 (CST) Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id D99094D42D2; Thu, 31 Mar 2005 02:42:35 +0000 (GMT) Original-To: Emacs Devel In-Reply-To: (Miles Bader's message of "Wed, 30 Mar 2005 07:50:06 +0900") X-Hashcash: 0:050331:emacs-devel@gnu.org:2230e09dc2a38cb1 X-Hashcash: 0:050331:miles@gnu.org:3474b870c7c44ed7 Original-Lines: 26 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) 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:35398 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35398 >>>>> "Miles" == Miles Bader writes: Miles> [I didn't change anything in the fontconfig setup so it seems Miles> the default settings -- which are presumably aimed at white Miles> backgrounds -- deals pretty well with black backgrounds too.] It does depend on the font and whether you are using the byte code interpreter. The well-instructed fonts tend to use single-pixel wide stems up to circa 16–18 ppem. The auto-fitter, however, tends to result in wider stems. Xft’s rgba filter is tuned for light backgrounds; single-pixel stems tend to drop out when it is used with dark backgrounds. So, if you are using sub-pixel rendering, the BCI and a well instructed font you will see *much* better text with a light background than with a dark. But if you are using fonts w/o quality instructions — whether poorly-instructed fonts, non- ttf fonts, or freetype compiled w/o the interpreter — and/or greyscale rather than sub-pixel then light on dark should be almost as good as dark on light text. Or at least that is what I saw back when I tested it. -JimC -- James H. Cloos, Jr.