From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: anhnmncb Newsgroups: gmane.emacs.devel Subject: Re: Chinese punctuation symbol can't be displayed on windows 2000. Date: Wed, 17 Dec 2008 17:02:39 +0800 Message-ID: <878wqf9ntc.fsf@sina.com> References: <87oczhd5kv.fsf@sina.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229504595 23987 80.91.229.12 (17 Dec 2008 09:03:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Dec 2008 09:03:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 17 10:04:22 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 1LCsKK-0008IU-8q for ged-emacs-devel@m.gmane.org; Wed, 17 Dec 2008 10:04:20 +0100 Original-Received: from localhost ([127.0.0.1]:46348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCsJ7-0006D7-R5 for ged-emacs-devel@m.gmane.org; Wed, 17 Dec 2008 04:03:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCsIz-0006Cp-0Z for emacs-devel@gnu.org; Wed, 17 Dec 2008 04:02:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCsIx-0006CZ-7C for emacs-devel@gnu.org; Wed, 17 Dec 2008 04:02:55 -0500 Original-Received: from [199.232.76.173] (port=38302 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCsIw-0006CO-TG for emacs-devel@gnu.org; Wed, 17 Dec 2008 04:02:55 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:52027 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 1LCsIw-0005B5-FC for emacs-devel@gnu.org; Wed, 17 Dec 2008 04:02:54 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LCsIr-0001WX-53 for emacs-devel@gnu.org; Wed, 17 Dec 2008 09:02:49 +0000 Original-Received: from 221.6.39.130 ([221.6.39.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Dec 2008 09:02:49 +0000 Original-Received: from anhnmncb by 221.6.39.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Dec 2008 09:02:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 221.6.39.130 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (windows-nt) Cancel-Lock: sha1:6fQOrm+Bjpsh/DhA26tkSAu1ODk= X-Antivirus: avast! (VPS 081216-0, 12/16/2008), Outbound message X-Antivirus-Status: Clean 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:106998 Archived-At: Jason Rumney (2008-12-17 05:19 +0000) wrote: > Quoting anhnmncb : > >> Ping. What info should I need to provide for you to get rid of it? It is >> too annoying to let me live in emacs :( > > I think the problem is in w32font_has_char in w32font.c. Try replacing the > entire body of that function with: > > { > return -1; > } > > The problem is that function places too much faith in the character range > support claimed by fonts. Previously I changed it to return -1 (uncertain) when > a font claims to cover a Unicode range, because many fonts claim coverage, but > do not cover all characters in that range. Now according to your report, there > are fonts shipped with Windows 2000 that do not claim support for the cjk-misc > range, even if they (partially at least) cover it. So it seems there are no > circumstances left where we can be sure whether a character is or is not > included in a font without opening the font. It solves the issue, and I find that emacs now can display most of fonts that can not even when on xp and vista.