From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jasonr@f2s.com Newsgroups: gmane.emacs.devel Subject: Re: font name not decoded in the output of describe-font Date: Tue, 16 Dec 2008 01:46:09 +0000 Message-ID: <1229391969.494708614ac3b@webmail.freedom2surf.net> References: <14448004.281361229177919568.JavaMail.coremail@bj163app29.163.com> <4943F708.9050007@f2s.com> <87y6ygsxyb.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1229392019 17439 80.91.229.12 (16 Dec 2008 01:46:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2008 01:46:59 +0000 (UTC) Cc: brep , emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 16 02:48:04 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 1LCP2S-0003Ij-I4 for ged-emacs-devel@m.gmane.org; Tue, 16 Dec 2008 02:47:58 +0100 Original-Received: from localhost ([127.0.0.1]:49072 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCP1G-0004EW-N8 for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 20:46:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCP1C-0004E8-Ip for emacs-devel@gnu.org; Mon, 15 Dec 2008 20:46:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCP1A-0004CW-FY for emacs-devel@gnu.org; Mon, 15 Dec 2008 20:46:38 -0500 Original-Received: from [199.232.76.173] (port=46035 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCP1A-0004CK-A3 for emacs-devel@gnu.org; Mon, 15 Dec 2008 20:46:36 -0500 Original-Received: from mk-outboundfilter-6-a-2.mail.uk.tiscali.com ([212.74.114.16]:54032) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LCP16-0002Tt-LC; Mon, 15 Dec 2008 20:46:32 -0500 Original-X-Trace: 61658808/mk-outboundfilter-6.mail.uk.tiscali.com/F2S/$F2S-MX-ACCEPTED/f2s-freedom2surf-infrastructure/194.106.33.239/None/jasonr@f2s.com X-SBRS: None X-RemoteIP: 194.106.33.239 X-IP-MAIL-FROM: jasonr@f2s.com X-MUA: Internet Messaging Program (IMP) 3.2.3 X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al8DALCWRknCaiHv/2dsb2JhbACSTbp9gn4 X-IronPort-AV: E=Sophos;i="4.36,227,1228089600"; d="scan'208";a="61658808" X-IP-Direction: IN Original-Received: from mail5.freedom2surf.net (HELO webmail1.freedom2surf.net) ([194.106.33.239]) by smtp.f2s.tiscali.co.uk with ESMTP; 16 Dec 2008 01:46:09 +0000 Original-Received: from localhost (i-194-106-33-239 [127.0.0.1]) by webmail1.freedom2surf.net (Postfix) with ESMTP id 52F60228539; Tue, 16 Dec 2008 01:46:09 +0000 (GMT) Original-Received: from 61.4.103.130 ([61.4.103.130]) by webmail.freedom2surf.net (IMP) with HTTP for ; Tue, 16 Dec 2008 01:46:09 +0000 In-Reply-To: <87y6ygsxyb.fsf@catnip.gol.com> User-Agent: Internet Messaging Program (IMP) 3.2.3 X-Originating-IP: 61.4.103.130 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:106948 Archived-At: 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? 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.