From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: font selection confusion Date: Thu, 05 Mar 2009 21:53:43 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236257610 21876 80.91.229.12 (5 Mar 2009 12:53:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 12:53:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 05 13:54:47 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 1LfD5x-0004Wy-AW for ged-emacs-devel@m.gmane.org; Thu, 05 Mar 2009 13:54:37 +0100 Original-Received: from localhost ([127.0.0.1]:33478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfD4c-0006nw-4q for ged-emacs-devel@m.gmane.org; Thu, 05 Mar 2009 07:53:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfD4X-0006nh-IG for emacs-devel@gnu.org; Thu, 05 Mar 2009 07:53:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfD4W-0006nC-I8 for emacs-devel@gnu.org; Thu, 05 Mar 2009 07:53:09 -0500 Original-Received: from [199.232.76.173] (port=52208 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfD4W-0006mw-CL for emacs-devel@gnu.org; Thu, 05 Mar 2009 07:53:08 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:38968) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfD4S-0001bu-I5; Thu, 05 Mar 2009 07:53:05 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n25Cr1cm000406; Thu, 5 Mar 2009 21:53:01 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n25Cr1lq012066; Thu, 5 Mar 2009 21:53:01 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id n25Cqxu4006715; Thu, 5 Mar 2009 21:52:59 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LfD55-000519-2S; Thu, 05 Mar 2009 21:53:43 +0900 In-reply-to: (message from Miles Bader on Wed, 04 Mar 2009 14:19:38 +0900) X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.aist.go.jp id n25Cr1cm000406 X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:109469 Archived-At: In article , Miles Bader writes: > (1) Start "HOME=3D/tmp emacs -Q" > (2) Insert this string in *scratch*: =E2=9D=A6=E2=8B=AE > (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" > (4) Now, I use the "Options > Set Default Font" menu to change the > default font to "Liberation Mono" (this is a commonly installed > free font, but any font with poor coverage of funny characters > will seems to give the same result...). > (5) Liberation Mono does not have either of those characters, but wha= t > happens is: the "FLORAL HEART" character is now displayed as an > empty box, but the "VERTICAL ELLIPSIS" character continues to be > displayed using the "mutt-clearlyu" font. This is because Emacs avoid greedy search of a font for each entry of a fontset. As those characters are both `symbol' script, Emacs tries to find a font that has one of #x201C, #x2200, or #x2500. If a font is found, that font is used for all symbol characters. But some of found font may not have a specific symbol character (e.g U+2766). In such a case, that character is shown by an empty box. This is to avoid extreme slowness on displaying a buffer that contains many characters for which you don't have any font. But, I've just installed a code that does a little bit more greedy search. It should works for such a font backend that supports `has_char' method for a font-entity, e.g. xft. --- Kenichi Handa handa@m17n.org