From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#2761: Tibetan font selection broken Date: Tue, 24 Mar 2009 10:11:43 +0900 Message-ID: References: Reply-To: Kenichi Handa , 2761@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1237857845 25895 80.91.229.12 (24 Mar 2009 01:24:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Mar 2009 01:24:05 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 24 02:25:23 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LlvOL-0001Yr-PF for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Mar 2009 02:25:22 +0100 Original-Received: from localhost ([127.0.0.1]:39244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlvMy-00031H-Tw for geb-bug-gnu-emacs@m.gmane.org; Mon, 23 Mar 2009 21:23:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LlvMu-0002zu-FY for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2009 21:23:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LlvMp-0002yT-JC for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2009 21:23:52 -0400 Original-Received: from [199.232.76.173] (port=49657 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LlvMp-0002yQ-HA for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2009 21:23:47 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:58337) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LlvMp-0004E5-4H for bug-gnu-emacs@gnu.org; Mon, 23 Mar 2009 21:23:47 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2O1NioU019171; Mon, 23 Mar 2009 18:23:44 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n2O1K39r018097; Mon, 23 Mar 2009 18:20:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Kenichi Handa Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 24 Mar 2009 01:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 2761 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123785708216623 (code B ref -1); Tue, 24 Mar 2009 01:20:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 24 Mar 2009 01:11:22 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2O1BI7X016616 for ; Mon, 23 Mar 2009 18:11:19 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:47192 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LlvAk-00024w-1K for emacs-pretest-bug@gnu.org; Mon, 23 Mar 2009 21:11:18 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LlvAi-0003Kn-Mu for emacs-pretest-bug@gnu.org; Mon, 23 Mar 2009 21:11:17 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:49115) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LlvAh-0003KV-Iv for emacs-pretest-bug@gnu.org; Mon, 23 Mar 2009 21:11:16 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n2O1BA9S006610; Tue, 24 Mar 2009 10:11:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n2O1BAMr003030; Tue, 24 Mar 2009 10:11:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id n2O1B9Yr016275; Tue, 24 Mar 2009 10:11:10 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LlvB9-0007NF-UA; Tue, 24 Mar 2009 10:11:43 +0900 In-reply-to: (message from Andreas Schwab on Thu, 19 Mar 2009 17:00:23 +0100) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 23 Mar 2009 21:23:52 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:26594 gmane.emacs.pretest.bugs:24170 Archived-At: In article , Andreas Schwab writes: > This change: > 2009-03-05 Kenichi Handa > * font.c (font_select_entity): New function. > (font_find_for_lface): Use font_select_entity to select a font. > * fontset.c (fontset_find_font): If a font found without > restricting of the characters C doen't support C, try to find a > font with C restriction. > has broken display of tibetan characters. The characters are no longer > found in the gnu-unicode font. Instead a weird, one-pixel wide empty > box is shown for each font (see the attached snapshot). I have also > attached the font logs from before and after that change. Actually this change revealed two bugs. > The problem appears to be that the font encoding muletibetan-0 is > unknown to Emacs. The only reference is in > face-font-registry-alternatives, which is not used by > find_font_encoding. Yes. That's one bug. I added an entry for muletibetan-0 in font-encoding-alist. Another bug is the handling of unknown encoding in X font backend, which caused that weird one-pixel wide empty box. I fixed that too. But, please note that these fixes results in selecting the font: -tibmdxa-fixed-medium-r-normal--16-*-72-72-m-160-muletibetan-0 instead of the gnu-unicode font in your environment. --- Kenichi Handa handa@m17n.org