[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [emacs-unicode-2] incorrectly displayed cyrillic symbols
From: |
Kenichi Handa |
Subject: |
Re: [emacs-unicode-2] incorrectly displayed cyrillic symbols |
Date: |
Tue, 21 Aug 2007 19:58:35 +0900 |
In article <address@hidden>, Philip Belemezov <address@hidden> 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 using
> 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: ะด (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:Chinese
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
address@hidden
PS. "--enable-font-backend" is not necessary now.