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 name not decoded in the output of describe-font Date: Tue, 16 Dec 2008 13:44:19 +0900 Message-ID: References: <14448004.281361229177919568.JavaMail.coremail@bj163app29.163.com> <4943F708.9050007@f2s.com> <87y6ygsxyb.fsf@catnip.gol.com> <1229391969.494708614ac3b@webmail.freedom2surf.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1229402696 7077 80.91.229.12 (16 Dec 2008 04:44:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2008 04:44:56 +0000 (UTC) Cc: emacs-devel@gnu.org, brep@163.com, miles@gnu.org To: jasonr@f2s.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 16 05:46:02 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 1LCRon-00072v-AE for ged-emacs-devel@m.gmane.org; Tue, 16 Dec 2008 05:46:02 +0100 Original-Received: from localhost ([127.0.0.1]:43140 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCRnb-0007C3-7d for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 23:44:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCRnV-0007BY-Kw for emacs-devel@gnu.org; Mon, 15 Dec 2008 23:44:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCRnU-0007B6-QT for emacs-devel@gnu.org; Mon, 15 Dec 2008 23:44:41 -0500 Original-Received: from [199.232.76.173] (port=55071 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCRnU-0007B3-KC for emacs-devel@gnu.org; Mon, 15 Dec 2008 23:44:40 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:38367) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCRnQ-0003oL-Pc; Mon, 15 Dec 2008 23:44:37 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id mBG4iKim011614; Tue, 16 Dec 2008 13:44:20 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id mBG4iKRJ023464; Tue, 16 Dec 2008 13:44:20 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id mBG4iJNm019972; Tue, 16 Dec 2008 13:44:19 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1LCRn9-0005Tz-8X; Tue, 16 Dec 2008 13:44:19 +0900 In-reply-to: <1229391969.494708614ac3b@webmail.freedom2surf.net> (jasonr@f2s.com) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) 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:106952 Archived-At: In article <1229391969.494708614ac3b@webmail.freedom2surf.net>, jasonr@f2s.com writes: > Quoting Miles Bader : > > Jason Rumney writes: > > >> The font name is not decoded, and revealed as internal representation. > > > > > > I've added code to decode and encode font names in the w32 font backends. > > > > The same problem exists in the output of `C-u C-x ='; I thought > > Handa-san said he was going to fix it, but... maybe he forgot? Ah, yes, sorry. > He said that the fix will need to be specific to each font backend. > I fixed the W32 font backends to decode the font name, but the problem may still > exist in other backends. > My understanding is that Truetype fonts that contain localised names also > contain an ASCII name. On Windows the localised name is only used when the > system locale matches. I don't know under what circumstances if any xft uses > the localised truetype font names. And whether localised names are used in > other font types, and how to tell the encoding. At least, X font-backend has to decode a font name by iso-8859-1 if the name has 8-bit code (but I've never seen such a font). For Xft backend, the problem is fontconfig. It seems that it always provide an UTF-8 encoded name, but I couldn't find a document saying that clearly. This page: http://fontconfig.org/fontconfig-devel/x19.html#AEN27 says only this: Property CPP Symbol Type Description ---------------------------------------------------- family FC_FAMILY String Font family names familylang FC_FAMILYLANG String Language cooresponding to each family name --- Kenichi Handa handa@m17n.org