all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Philip Belemezov <philip.belemezov@googlemail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [emacs-unicode-2] incorrectly displayed cyrillic symbols
Date: Tue, 21 Aug 2007 19:58:35 +0900	[thread overview]
Message-ID: <E1INRRT-0002Aj-Ex@etlken.m17n.org> (raw)
In-Reply-To: <1187612430.7289.19.camel@localhost> (message from Philip Belemezov on Mon, 20 Aug 2007 14:20:30 +0200)

In article <1187612430.7289.19.camel@localhost>, Philip Belemezov <philip.belemezov@googlemail.com> 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
handa@m17n.org

PS. "--enable-font-backend" is not necessary now.

  reply	other threads:[~2007-08-21 10:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-21 15:30 [emacs-unicode-2] incorrectly displayed cyrillic symbols Philip Belemezov
2007-08-20  1:21 ` Kenichi Handa
2007-08-20  4:11   ` Philip Belemezov
2007-08-20  5:03     ` Kenichi Handa
2007-08-20 12:20       ` Philip Belemezov
2007-08-21 10:58         ` Kenichi Handa [this message]
2007-08-21 17:19           ` Philip Belemezov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1INRRT-0002Aj-Ex@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=philip.belemezov@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.