[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No malayalam glyphs in language/mlm-util.el

From: Kenichi Handa
Subject: Re: No malayalam glyphs in language/mlm-util.el
Date: Mon, 24 Feb 2003 10:46:57 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, address@hidden (Ramakrishnan M) writes:
> Ah.. I finally could see malayalam. Thanks to all of you
> who helped me get this working. I did the following in
> ~/.emacs

> (if (eq 'x window-system)
>     (let ((fontset (query-fontset (frame-parameter nil 'font))))
>       (when (not fontset)
>       (setq fontset "fontset-default")
>       (set-default-font fontset))
>       (set-fontset-font fontset
>                       (cons (decode-char 'ucs #x0D00)
>                             (decode-char 'ucs #x0D7f))
>                       (cons "misc-malayalam" "iso10646-1"))))

I think you can simply do this:

(if (featurep 'fontset)
    (set-fontset-font "fontset-default"
                      (cons (decode-char 'ucs #x0D00)
                            (decode-char 'ucs #x0D7f))
                      (cons "misc-malayalam" "iso10646-1")))

> Now, my question is, can the whole thing be automated such
> that when I just add a font to the system, it gets automatically
> added to the fontset-default ? 

There are fonts that have malayalam glyphs other than
"misc-malayalam", e.g. the font distribute here.
They don't have "misc-malayalam" name but can be used in
Emacs as well.

So, even if Emacs finds "misc-malayalam" font, it doesn't
mean a user want to use it.

The problem of "iso10646-1" fonts is that, inspite of that
registy name, they don't contain the whole glyphs for
iso10646.  To select a proper font for for a specific
character automatically, Emacs has to check contents of each
font.  The current Emacs doesn't have this facility.  As I
implemented it for emacs-unicode, I'd like to ask people to
wait for emacs-unicode.

Ken'ichi HANDA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]