From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.devel Subject: Re: font selection confusion Date: Wed, 04 Mar 2009 09:41:40 +0100 Message-ID: <87wsb5of23.fsf@escher.local.home> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1236156131 20647 80.91.229.12 (4 Mar 2009 08:42:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Mar 2009 08:42:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 04 09:43:28 2009 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 1LemhL-0003Zt-Hu for ged-emacs-devel@m.gmane.org; Wed, 04 Mar 2009 09:43:27 +0100 Original-Received: from localhost ([127.0.0.1]:60213 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lemg0-0002CH-NT for ged-emacs-devel@m.gmane.org; Wed, 04 Mar 2009 03:42:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lemfw-0002CB-9R for emacs-devel@gnu.org; Wed, 04 Mar 2009 03:42:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lemfr-0002Bt-Uy for emacs-devel@gnu.org; Wed, 04 Mar 2009 03:41:59 -0500 Original-Received: from [199.232.76.173] (port=43969 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lemfr-0002Bq-Pl for emacs-devel@gnu.org; Wed, 04 Mar 2009 03:41:55 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:52428 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lemfq-00010E-Rn for emacs-devel@gnu.org; Wed, 04 Mar 2009 03:41:55 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Lemfl-0004LP-CM for emacs-devel@gnu.org; Wed, 04 Mar 2009 08:41:49 +0000 Original-Received: from i59f54440.versanet.de ([89.245.68.64]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Mar 2009 08:41:49 +0000 Original-Received: from stephen.berman by i59f54440.versanet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 Mar 2009 08:41:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 68 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: i59f54440.versanet.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/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:109436 Archived-At: On Wed, 04 Mar 2009 14:19:38 +0900 Miles Bader wrote: > GNU Emacs 23.0.91.8 (x86_64-unknown-linux-gnu, GTK+ Version 2.14.7) of 2009-03-04 on dhlpc061 > > I'm kind of confused how emacs chooses alternative fonts to display > funny characters. > > For instance, try this: > > (1) Start "HOME=/tmp emacs -Q" > > (2) Insert this string in *scratch*: ❦⋮ > (those two characters are \u2766, "FLORAL HEART", and \u22ee, > "VERTICAL ELLIPSIS") > > (3) On my system, which is debian unstable, the default font used is > "Dejuavu Sans Mono"; using that font, the "FLORAL HEART" can be > displayed using the default font, and "VERTICAL ELLIPSIS" is > displayed using a different font, > "-mutt-clearlyu-medium-r-normal--17-120-100-100-p-123-iso10646-1" There's something peculiar with \u22ee in my Emacs (GNU Emacs 23.0.91.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-03-01 on escher), which may be related. I also use Dejavu Sans Mono (set in ~/.Xresources, along with xft as FontBackend). In the Gnus *Article* buffer in which I'm reading Miles's post, both characters are displayed fine. According to `C-u C-x =', both use the default font; here is the complete description of \u22ee: character: ⋮ (8942, #o21356, #x22ee) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point: 0x22EE syntax: . which means: punctuation category: .:Base buffer code: #xE2 #x8B #xAE file code: #xE2 #x8B #xAE (encoded by coding system utf-8-unix) display: by this font (glyph code) xft:-unknown-DejaVu Sans-normal-normal-normal-*-12-*-*-*-*-0-iso10646-1 (#xD13) Character code properties: customize what to show name: VERTICAL ELLIPSIS general-category: Sm (Symbol, Math) However, in this description, the vertical ellipsis is not displayed, but instead an empty box. The same goes for the Message buffer into which I yanked the post from the *Article* buffer (again, the latter does display the vertical ellipsis). Likewise if I just yank that character into any other buffer, and also if I start emacs -Q and insert it with ucs-insert or with `M-: (insert ?\u22ee)': it displays only as an empty box (again, with the default font Dejavu Sans Mono). When I type `C-u C-x =' on any of these empty boxes, this is the result: character: ⋮ (8942, #o21356, #x22ee) preferred charset: unicode-bmp (Unicode Basic Multilingual Plane (U+0000..U+FFFF)) code point: 0x22EE syntax: . which means: punctuation category: .:Base buffer code: #xE2 #x8B #xAE file code: #xE2 #x8B #xAE (encoded by coding system utf-8-unix) display: no font available Character code properties: customize what to show name: VERTICAL ELLIPSIS general-category: Sm (Symbol, Math) -- Steve Berman