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: [emacs-unicode-2] incorrectly displayed cyrillic symbols Date: Tue, 21 Aug 2007 19:58:35 +0900 Message-ID: References: <1185031803.2604.18.camel@localhost> <1187583076.5399.26.camel@localhost> <1187612430.7289.19.camel@localhost> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1187693947 13976 80.91.229.12 (21 Aug 2007 10:59:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 10:59:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Philip Belemezov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 21 12:59:04 2007 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 1INRRt-0003rk-5q for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2007 12:59:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INRRs-0003AK-JC for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2007 06:59:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INRRc-00033W-6Z for emacs-devel@gnu.org; Tue, 21 Aug 2007 06:58:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INRRa-00032s-Vd for emacs-devel@gnu.org; Tue, 21 Aug 2007 06:58:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INRRa-00032m-PR for emacs-devel@gnu.org; Tue, 21 Aug 2007 06:58:42 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1INRRZ-0005NA-Ow for emacs-devel@gnu.org; Tue, 21 Aug 2007 06:58:42 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id l7LAwa4o016034; Tue, 21 Aug 2007 19:58:36 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id l7LAwaQR000945; Tue, 21 Aug 2007 19:58:36 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id l7LAwZbu024284; Tue, 21 Aug 2007 19:58:35 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.67) (envelope-from ) id 1INRRT-0002Aj-Ex; Tue, 21 Aug 2007 19:58:35 +0900 In-reply-to: <1187612430.7289.19.camel@localhost> (message from Philip Belemezov on Mon, 20 Aug 2007 14:20:30 +0200) X-MIME-Autoconverted: from 8bit to quoted-printable by mx1.aist.go.jp id l7LAwa4o016034 X-Detected-Kernel: Solaris 8 (1) 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:76882 Archived-At: In article <1187612430.7289.19.camel@localhost>, Philip Belemezov writes: > > Please show me the result of: > > % xlsfonts|grep -i iso8859-5 > Here's the list: > $ xlsfonts | grep -i iso8859-5 > -misc-fixed-bold-r-normal--0-0-100-100-c-0-iso8859-5 [...] > -unknown-freeserif-medium-r-normal--0-0-0-0-p-0-iso8859-5 > -unknown-freeserif-medium-r-normal--0-0-0-0-p-0-iso8859-5 Hmmm, somehow (perhaps via xfs) your freeserif truetype font is recognized as X core fonts. Emacs' default fontset has an entry for Cyrillic as below: (cyrillic (nil . "ISO8859-5") (nil . "microsoft-cp1251") (nil . "koi8-r")) So, Emacs tries fonts of those registies in turn, and finds that freeserif best matches with your requested font size. And the ugliness is because the font is used as an X font; i.e. antialias is not supported. > I just _uninstalled_ the free* fonts and typed some Cyrillic text in > Emacs - it's OK, i.e. glyphs are rendered correctly and, obviously usin= g > DejaVu. [...] > So it's using DejaVu now. Shouldn't it be using fixed or clean, as > they're the only iso-8859-5 fonts left? Should be. And, in my environment, Emacs surely uses "Clean" even if I start it as: % emacs --font "Dejavu Sans Mono-8" character: =D0=B4 (1076, #o2064, #x434) preferred charset: iso-8859-5 (ISO/IEC 8859/5) code point: 0xD4 syntax: w which means: word category: Y:Cyrillic characters of 2-byte character sets c:Chine= se h:Korean j:Japanese y:Cyrillic buffer code: #xD0 #xB4 file code: #xD0 #xB4 (encoded by coding system utf-8-unix) display: by this font (glyph code) -Schumacher-Clean-Medium-R-Normal--12-120-75-75-C-60-ISO8859-5 (#xD4= ) I don't know why you have the different result. I'll try to add some debugging facility for font selection. --- Kenichi Handa handa@m17n.org PS. "--enable-font-backend" is not necessary now.