unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
Cc: emacs-devel@gnu.org
Subject: Re: Pango-like font fallback (was Re: Russian numero sign)
Date: Wed, 08 Mar 2006 10:55:32 +0900	[thread overview]
Message-ID: <E1FGntk-0000IB-00@etlken> (raw)
In-Reply-To: <200603072239.29811.pogonyshev@gmx.net> (message from Paul Pogonyshev on Tue, 7 Mar 2006 22:39:29 +0200)

Paul Pogonyshev <pogonyshev@gmx.net> writes:

>> Please note that Pango and the other modern rendering
>> engines use TrueType font with a help of freetype/Xft and
>> fontconfig libraries.  Emacs (and emacs-unicode-2 too)
>> currently doesn't use them, but there exists an ongoing
>> project for supporting TTF in Emacs.

> That is a valid reason why Emacs cannot use Pango (yet), but it
> doesn't mean Emacs cannot implement similar substitution heuristic
> without Pango and for a different font class.  As I understand, you
> did that in the `emacs-unicode-2' branch.  It is not something simple,
> but Emacs is not simple to begin with.

I drastically changed the internal structure of fontset in
emacs-unicode-2.  We can't do such a change for the HEAD
(which will be the next release, I hope, soon).

>> First of all, do you have any iso10646-1 X core fonts that
>> support Cyrillic characters?

> No idea, sorry.  How do I check?  As I wrote above, Emacs does
> display Cyrillic characters (newly typed) when `unify-8859-on-decoding'
> is off.  And already existing characters are displayed no matter if
> that mode is active or not.

% xlsfonts -fn -*-*-medium-r-normal-*-*-*-*-*-*-*-iso10646-1

gives you a list of iso10646-1 X core fonts usable from
Emacs.  For instance, if this font is found...
-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1

% xfd -fn -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1

shows you the supported glyphs.  Please check the block
0x000400.  If you see cyrillic glyphs there, that font is
what you need.  You can do this to use that font.

(set-fontset-font
 "fontset-default"
 'mule-unicode-0100-24ff
 '("FOUNDRY-FAMILY" . "iso10646-1"))

Here FOUNDRY-FAMILY is misc-fixed in the above case.

If you surely don't have a proper iso10646-1 font, the next
method you can try is to customize utf-fragment-on-decoding
to t.  Even with the default setting of
unify-8859-on-decoding/off and unify-8859-on-encoding/on, if
utf-fragment-on-decoding is on, when you read an utf-8
cyrillic file, characters and decoded into
cyrillic-iso8859-5 charsets, thus you should see glyphs with
your iso8859-5 fonts.

---
Kenichi Handa
handa@m17n.org

  reply	other threads:[~2006-03-08  1:55 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-19 12:31 Russian numero sign Paul Pogonyshev
2006-02-20 14:07 ` Benjamin Riefenstahl
2006-02-22 19:49   ` Paul Pogonyshev
2006-02-24 12:18     ` Benjamin Riefenstahl
2006-02-23 15:22   ` Stefan Monnier
2006-02-23  7:52 ` Kenichi Handa
2006-02-23 20:37   ` Pango-like font fallback (was Re: Russian numero sign) Paul Pogonyshev
2006-02-24  1:30     ` Kenichi Handa
2006-03-05 20:31       ` Paul Pogonyshev
2006-03-07  5:11         ` Kenichi Handa
2006-03-07 20:39           ` Paul Pogonyshev
2006-03-08  1:55             ` Kenichi Handa [this message]
2006-03-08 18:16               ` Paul Pogonyshev
2006-03-14  2:27                 ` Kenichi Handa
2006-06-04 10:56                   ` Paul Pogonyshev
2006-06-05 12:56                     ` Kenichi Handa
2006-06-05 14:07                       ` Paul Pogonyshev

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=E1FGntk-0000IB-00@etlken \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).