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: Fri, 23 May 2008 22:57:10 +0100 Message-ID: <48373DB6.1030808@harpegolden.net> References: <87fxsjmmo2.fsf@escher.local.home> <87fxsiczun.fsf@escher.local.home> <482E4EB0.3070003@harpegolden.net> <87wslti040.fsf@escher.local.home> <482EE57C.8050009@harpegolden.net> <87ve1cn5dz.fsf@escher.local.home> <482FA2EE.7010900@harpegolden.net> <873aofscdz.fsf@escher.local.home> <87lk226ppg.fsf@escher.local.home> <4836450B.7000403@harpegolden.net> <87y7615hn2.fsf@escher.local.home> <4836EC67.90400@harpegolden.net> <87prrd54xg.fsf@escher.local.home> <483700BC.1060101@harpegolden.net> <87lk2069db.fsf@escher.local.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1211579869 32230 80.91.229.12 (23 May 2008 21:57:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 May 2008 21:57:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stephen Berman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 23 23:58:27 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 1JzfH8-0002Kq-0u for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 23:58:10 +0200 Original-Received: from localhost ([127.0.0.1]:36954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzfGN-00063W-Eu for ged-emacs-devel@m.gmane.org; Fri, 23 May 2008 17:57:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzfGI-00060E-1n for emacs-devel@gnu.org; Fri, 23 May 2008 17:57:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzfGG-0005wE-67 for emacs-devel@gnu.org; Fri, 23 May 2008 17:57:17 -0400 Original-Received: from [199.232.76.173] (port=50732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzfGF-0005w2-SK for emacs-devel@gnu.org; Fri, 23 May 2008 17:57:15 -0400 Original-Received: from harpegolden.net ([65.99.215.13]:34247) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JzfGF-0000NY-M3 for emacs-devel@gnu.org; Fri, 23 May 2008 17:57:15 -0400 Original-Received: from golden1.harpegolden.net (unknown [86.45.14.42]) (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 8402583F0; Fri, 23 May 2008 21:57:13 +0000 (UTC) User-Agent: Mozilla-Thunderbird 2.0.0.9 (X11/20080110) In-Reply-To: <87lk2069db.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:97621 Archived-At: Stephen Berman wrote: > -Adobe-Adobe Helvetica-normal-normal-normal-*-12-*-*-*-*-*-iso8859-1 > > The output includes Adobe Helvetica but not the other two fonts above > (though B&H Lucida, B&H LucidaBright, and B&H LucidaTypewriter are > listed). > I guess the filenames all ended in .pcf or .pcf.gz ? If so, they're all fonts that ship as bitmaps with X. Yours apparently have the foundry names prepended in the family though, which might be some sort of policy change that I haven't encountered yet. Of course they shouldn't be showing up at all if you've successfully disabled bitmap fonts. Huh. > If either of these is right, it doesn't shed any light on why Emacs uses > DejaVu Sans and b&h-Lucida Sans for faces derived from variable-pitch in > my cases. > Guess not. But - bah. That "helv" (rather than "helvetica") that is in emacs' variable-pitch's family by default is IMO unlikely to do anything particularly sensible (unlike the "courier" default in fixed-pitch) - "helv" is neither the name of a font nor an alias in fontconfig as far as I can see, and family matching is not AFAICS substring-based in fontconfig. I had actively set my variable-pitch face to DejaVu Sans. Are you resetting it or leaving it default? Since "helv" doesn't match anything, the decision is probably down to other factors, like charsets covered or phase of the moon e.g. helv: fc-match helv:lang=ie => Vera.ttf: "Bitstream Vera Sans" "Roman" fc-match helv:lang=ru => DejaVuSans.ttf: "DejaVu Sans" "Book" fc-match helv:lang=ja => sazanami-gothic.ttf: "Sazanami Gothic" "Regular" silly name (as you can see, same results as helv): fc-match wheresmyjumper:lang=ie => Vera.ttf: "Bitstream Vera Sans" "Roman" fc-match wheresmyjumper:lang=ru => DejaVuSans.ttf: "DejaVu Sans" "Book" fc-match wheresmyjumper:lang=ja => sazanami-gothic.ttf: "Sazanami Gothic" "Regular" helvetica, apparently using the substitutions James Cloos mentioned: fc-match helvetica:lang=ie => n019003l.pfb: "Nimbus Sans L" "Regular" fc-match helvetica:lang=ru => n019003l.pfb: "Nimbus Sans L" "Regular" fc-match helvetica:lang=ja => n019003l.pfb: "Nimbus Sans L" "Regular" *** So perhaps emacs should default to "helvetica" for variable-pitch if it's gonna default to "courier" for fixed-pitch. Then fontconfig might have a chance. :-)