From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: DejaVu vs. Lucida and `slant' face attribute Date: Fri, 7 Mar 2008 20:44:26 +0200 Message-ID: <20080307184426.GA6711@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204915535 12638 80.91.229.12 (7 Mar 2008 18:45:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Mar 2008 18:45:35 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 07 19:46:00 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 1JXhZX-0005fd-Us for ged-emacs-devel@m.gmane.org; Fri, 07 Mar 2008 19:45:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXhZ0-0007Gh-6o for ged-emacs-devel@m.gmane.org; Fri, 07 Mar 2008 13:45:02 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXhYu-0007C2-0K for emacs-devel@gnu.org; Fri, 07 Mar 2008 13:44:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXhYs-00078q-VJ for emacs-devel@gnu.org; Fri, 07 Mar 2008 13:44:55 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXhYs-00078B-9o for emacs-devel@gnu.org; Fri, 07 Mar 2008 13:44:54 -0500 Original-Received: from igloo.linux.gr ([62.1.205.36]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JXhYr-0005Zi-9v for emacs-devel@gnu.org; Fri, 07 Mar 2008 13:44:53 -0500 Original-Received: from kobe.laptop (vader.bytemobile-rio.ondsl.gr [83.235.57.37]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-9) with ESMTP id m27IiV6C014003 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Fri, 7 Mar 2008 20:44:42 +0200 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m27IiQg6006856 for ; Fri, 7 Mar 2008 20:44:26 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m27IiQnj006855 for emacs-devel@gnu.org; Fri, 7 Mar 2008 20:44:26 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Content-Disposition: inline X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.978, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.42, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) 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:91658 Archived-At: Hi everyone, I recently updated my Emacs installation to a CVS snapshot which includes the new Xft backend code. Things look great, and I'm quite happy about the ability to use scalable monospaced fonts in my X11 based Emacs sessions. I noticed something odd, however. A difference in the handling of the `DejaVu Sans Mono' and `Lucida Sans Typewriter' fonts. After setting the following X11 resources: Emacs.FontBackend: xft Emacs*font: DejaVu Sans Mono:size=12 Emacs correctly uses `DejaVu Sans Mono:style=Oblique' for displaying slanted text in Gnus article buffers, i.e. for text with the `gnus-cite-attribution' face property. When I fire up the same Emacs build with: emacs -fn 'Lucida Sans Typewriter' The same text is not slanted, italic or oblique. The two fonts seem to have `Oblique' and `Bold Oblique' styles, when I try to list them with fc-list(1): keramida@kobe:/home/keramida$ fc-list 'Lucida Sans Typewriter' Lucida Sans Typewriter:style=Bold Lucida Sans Typewriter:style=Oblique Lucida Sans Typewriter:style=Regular Lucida Sans Typewriter:style=Bold Oblique keramida@kobe:/home/keramida$ fc-list 'DejaVu Sans Mono' DejaVu Sans Mono:style=Bold Oblique DejaVu Sans Mono:style=Oblique DejaVu Sans Mono:style=Book DejaVu Sans Mono:style=Bold keramida@kobe:/home/keramida$ Any hints or help about troubleshooting why Emacs doesn't use the `Lucida Sans Typewriter:style=Oblique' font for text with a face whose `Slant' is `italic'? When I use `C-u C-x =' on gnus-cite-attribution text, the output with the Lucida font is: % character: F (70, #o106, #x46) % preferred charset: ascii (ASCII (ISO646 IRV)) % code point: 0x46 % syntax: w which means: word % category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) % l:Latin r:Japanese roman % buffer code: #x46 % file code: not encodable by coding system windows-1252-unix % display: by this font (glyph code) % lucida sans typewriter:pixelsize=12:foundry=b&h:weight=regular:slant=roman:width=normal (#x29) % % Character code properties are not shown: customize what to show % % There are 2 overlays here: % From 240 to 299 % evaporate t % face gnus-cite-1 % From 240 to 299 % evaporate t % face gnus-cite-attribution % % % There are text properties here: % auto-composed t % charset windows-1252 % When I use DejaVu Sans Mono, the same text shows the following output with `C-u C-x =': % character: O (79, #o117, #x4f) % preferred charset: ascii (ASCII (ISO646 IRV)) % code point: 0x4F % syntax: w which means: word % category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) % l:Latin r:Japanese roman % buffer code: #x4F % file code: not encodable by coding system windows-1252-unix % display: by this font (glyph code) % dejavu sans mono:pixelsize=12:foundry=unknown:weight=regular:slant=o:width=normal (#x32) % % Character code properties are not shown: customize what to show % % There are 2 overlays here: % From 240 to 299 % evaporate t % face gnus-cite-1 % From 240 to 299 % evaporate t % face gnus-cite-attribution % % % There are text properties here: % auto-composed t % charset windows-1252 I'm not sure why Emacs picks `slant=roman' in the case of the Lucida font, so any help in tracking down more details is quite welcome :-)