[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: Raja R Harinath
Subject: Re: No malayalam glyphs in language/mlm-util.el
Date: Fri, 14 Feb 2003 16:20:59 -0600
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50

"Robert J. Chassell" <address@hidden> writes:

> Still no success.
> Still using, today's CVS snapshot, Fri, 2003 Feb 14 13:31 UTC GNU
> Emacs (i686-pc-linux-gnu, X toolkit) started with
>      /usr/local/bin/emacs -q --no-site-file --eval '(blink-cursor-mode 0)'
>    > ...I see empty boxes when I visit
>    >
>    >     emacs/lisp/language/mlm-util.el
>    AFAI can make out, the variables 'malayalam-consonant' and the regexp
>    in 'malayalam-composable-pattern' use Unicode.  You need an Unicode
>    font that has glyphs in that range.  If your default font doesn't
>    have the correct stuff, you'll need in your .emacs
>      (set-fontset-font (query-fontset (frame-parameter nil 'font))
>          (cons (decode-char 'ucs ?\x0D00) (decode-char 'ucs ?\x0D7f))
>          (cons "monotype-arial unicode ms" "iso10646-1"))
> I just started a fresh Emacs, evaluated that expression in it, and visited
> emacs/lisp/language/mlm-util.el
> No success.  Same problem as before: empty boxes.

It wasn't clear my previous mail: but the second cons refers to the
font name.  I used as an example the font "Arial Unicode MS": a TTF
font that came with Microsoft Office 2000.  Sorry about using an
non-free font as an example.

>    You can use any font that has Malayalam, ...
> Such as...?    please tell me a URL that I can download.



(That site had no indication about the freedom of usage of the font.
So, the situation is not really much better.)

> After downloading and unpacking into directory foobar/, 
> I presume I then do:
>     mkfontdir
>     xset fp+ /usr/X11R6/lib/X11/fonts/foobar/
>     xset fp rehash
> Is that right?
> (If that is right and you tell me a URL and it all works, I will
> write up a short example of what to do.)

If there is no 'fonts.scale' file in that directory, create it with
the following contents inside the ---8<--- lines.

---8<--- fonts.scale
malayalam.ttf -misc-malayalam-medium-r-normal--0-0-0-0-p-0-iso10646-1

If there's already a fonts.scale in that directory, add 1 to the
number on top of that file, and append the "malayalam.ttf -misc-...-1"
line to it.

Then run in that directory

  $ mkfontdir
  $ xset fp+ `pwd`
  $ xset fp rehash

Then, add the following to your .emacs:

      (set-fontset-font (query-fontset (frame-parameter nil 'font))
          (cons (decode-char 'ucs #x0D00) (decode-char 'ucs #x0D7f))
          (cons "misc-malayalam" "iso10646-1"))

- Hari
Raja R Harinath ------------------------------ address@hidden

reply via email to

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