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: Default face problem Date: Tue, 02 May 2006 09:42:44 +0900 Message-ID: References: <87bquicu9k.fsf-monnier+emacs@gnu.org> <87u08aapx5.fsf-monnier+emacs@gnu.org> <87vespalwf.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1146530615 15585 80.91.229.2 (2 May 2006 00:43:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 May 2006 00:43:35 +0000 (UTC) Cc: wilde@sha-bang.de, jyavner@member.fsf.org, emacs-devel@gnu.org, rms@gnu.org, storm@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 02 02:43:33 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Faiz7-0002do-3J for ged-emacs-devel@m.gmane.org; Tue, 02 May 2006 02:43:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Faiz6-0000bR-83 for ged-emacs-devel@m.gmane.org; Mon, 01 May 2006 20:43:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Faiyt-0000a3-KE for emacs-devel@gnu.org; Mon, 01 May 2006 20:43:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Faiyr-0000Wb-JF for emacs-devel@gnu.org; Mon, 01 May 2006 20:43:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Faiyr-0000W7-6Q for emacs-devel@gnu.org; Mon, 01 May 2006 20:43:09 -0400 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Faiys-0003gb-7A; Mon, 01 May 2006 20:43:10 -0400 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k420gkPv031242; Tue, 2 May 2006 09:42:46 +0900 Original-Received: from etlken (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.13.4/8.13.4/Debian-3sarge1) with ESMTP id k420giKU023941; Tue, 2 May 2006 09:42:45 +0900 Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1FaiyS-0008BG-00; Tue, 02 May 2006 09:42:44 +0900 Original-To: Stefan Monnier In-reply-to: <87vespalwf.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Mon, 01 May 2006 09:58:53 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) 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:53754 Archived-At: In article <87vespalwf.fsf-monnier+emacs@gnu.org>, Stefan Monnier writes: >>> Yes, it is. But IIRC the font selection mechanism tries to distinguish >>> between bitmap-scaled and vector-scaled fonts by checking the presence of >>> another instance of the font, with a non-0 size (i.e. a bitmap font). >> Which font selection mechanism do you mean here? At least, >> Emacs doesn't do that. Emacs determines a font is >> auto-scaled if it's RESY is not zero and POINT_SIZE is zero. > Hmm... maybe I'm confusing things. At least I remember that at some point, > there was a special case where a bitmap font of a slightly different size > than requested was preferred over a scaled (whether bitmap or vector) font. Yes. At least that is true. The macro FONT_POINT_SIZE_QUANTUM (defined as 5 in xfaces.c) plays a role here. After getting a list of fonts, best_matching_font () at first checks all bitmap fonts to find a font matching exactly with the face request. At that time, the difference of point sizes less than FONT_POINT_SIZE_QUANTUM is ignored. And if a exactly matching (bitmap) font is found, it is returned without further checking scalable fonts. --- Kenichi Handa handa@m17n.org