From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David De La Harpe Golden Newsgroups: gmane.emacs.devel Subject: Re: (re)display problems after font backend merge Date: Sat, 17 May 2008 04:19:12 +0100 Message-ID: <482E4EB0.3070003@harpegolden.net> References: <87fxsjmmo2.fsf@escher.local.home> <87fxsiczun.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210994383 6494 80.91.229.12 (17 May 2008 03:19:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 May 2008 03:19:43 +0000 (UTC) Cc: handa@m17n.org, emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 17 05:20:19 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JxCy2-0002M4-Vt for ged-emacs-devel@m.gmane.org; Sat, 17 May 2008 05:20:19 +0200 Original-Received: from localhost ([127.0.0.1]:34631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxCxJ-00014m-8Y for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 23:19:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JxCxD-000140-Ub for emacs-devel@gnu.org; Fri, 16 May 2008 23:19:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JxCxC-000132-Eb for emacs-devel@gnu.org; Fri, 16 May 2008 23:19:27 -0400 Original-Received: from [199.232.76.173] (port=37131 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JxCxC-00012z-6G for emacs-devel@gnu.org; Fri, 16 May 2008 23:19:26 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:44148) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JxCxB-0006yA-Ny for emacs-devel@gnu.org; Fri, 16 May 2008 23:19:25 -0400 Original-Received: from golden1.harpegolden.net (unknown [86.45.2.49]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "David De La Harpe Golden", Issuer "David De La Harpe Golden Personal CA rev 3" (verified OK)) by harpegolden.net (Postfix) with ESMTP id 82EA28361; Sat, 17 May 2008 03:19:23 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080110) In-Reply-To: <87fxsiczun.fsf@escher.local.home> X-Enigmail-Version: 0.95.0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:97308 Archived-At: Stephen Berman wrote: > For ascii: > > -unknown-DejaVu Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso8859-1 > Call it (a) > For the non-ascii characters: > > -gnu-unifont-medium-r-normal--16-160-75-75-p-80-iso10646-1 > Call it (b) This is mostly me trying to understand something: Those (a) and (b) look like XLFD font specs, as used by X core 1-bit fonts - see output of command xlsfonts [*] > This is post-merge, in the pre-merge buffer, the corresponding line of > the character description for both ascii and non-ascii characters is > this: > > dejavu sans mono:pixelsize=12:foundry=unknown:weight=medium:slant=r:width=normal > Call it (c). That looks like a fontconfig font spec, as used by xft antialiased fonts - see output of fc-list [*] Are you setting X resource "Emacs.FontBackend: xft"? I've found that without that, I get a strange mix of decent and horrible font rendering as xft fonts (yay) and x core fonts (boo) are apparently both used somehow? :::::: I've just found that, at least post font-backend merge and possibly for some time before, emacs /even with/ FontBackend: xft returns XLFD-style specs even when it's clearly using xft rendering and fonts that I _know_ I didn't make available to X core font handling - I find that kind of confusing, emacs must be just inventing and using XLFDs internally ??? e.g. describe-char gives me, which looks like your (a), though I naively expected something like (c): -unknown-DejaVu Sans Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1 A sort of "synthetic XLFD" that emacs has invented. ::::: I would speculate that you [Stephen] don't have FontBackend: xft and your (a) is one of these synthetic XLFDs and (b) is a "real" XLFD corresponding to an X core font ?? So some of your characters (those in (b)) are getting drawn with X core font rendering and some with Xft font rendering (those in (a)), leading to at least some of the visually ugly appearance that is a "feature" of all X core font handling (e.g. lack of antialiasing, poor alignment) ??? [*] Sometimes the same font dirs are added to paths for both core fonts and fontconfig, so the same fonts show up in both xlsfonts and fc-list, but that's a bad assumption to make in general.