unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Cc: handa@m17n.org
Subject: Re: no font shown with tamil.el
Date: Wed, 12 Feb 2003 13:17:34 -0500 (EST)	[thread overview]
Message-ID: <m18j1Ru-000IeAC@localhost> (raw)
In-Reply-To: <m2lm0l290l.fsf@nyaumo.jasonr.f2s.com> (message from Jason Rumney on 12 Feb 2003 08:33:30 +0000)

Still no success.

   "Robert J. Chassell" <bob@rattlesnake.com> writes:

   > The fonts are going to become part of the distribution anyhow,

   Are they?

My misunderstanding.  I misread the documentation to mean that I no
longer had to do something extra to get fonts to work on a more or
less standard GNU/Linux system.

In /usr/local/src/emacs/INSTALL, after the header line that says, 
`* Extra fonts', it would be helpful to tell the reader that

    GNU Emacs does not include fonts and does not install them.  You must
    do this yourself. 

This would help prevent the kind of mistake I made.

In any event, I followed the advice that Kenichi Handa
<handa@m17n.org> gave, and followed the instructions in

    /usr/local/src/emacs/INSTALL

Even after following those instructions (as I understood them),
neither the Hindi nor the Tamil fonts are shown, although a Hindi font
is displayed in an instance of GNU Emacs 20.

The instructions in INSTALL presume the reader understands quite a bit
about fonts.  I don't.  But, as far as I can tell, I followed the
instructions correctly.  But I still don't see the Hindi or Tamil
fonts

Here is what I did.

I wrote this text in the third person so that you could include the
good parts of this in INSTALL immediated after the example makefile.
Something like this is needed, so long as it presents an example that
succeeds.  This particular text, sad to say, describes procedures that
fail.

    For     .....emacs/INSTALL
    following line 214

/----------------

For example, Robert J. Chassell downloaded the following TTF files
from    http://www.gitasupersite.iitk.ac.in/installfont.htm
to the /usr/X11R6/lib/X11/fonts/misc/ttf-font-dir/ directory:

    Asdr0ntt.TTF
    BNDR0ntt.ttf
    DVYG0ntt.ttf
    DVYG1ntt.ttf
    GJAV0ntt.ttf
    KNUM0ntt.ttf
    MLKR0ntt.ttf
    ORSR0ntt.ttf
    PNAM0ntt.ttf
    TLHM0ntt.ttf
    TMVL0ntt.ttf

He then downloaded the latest stable FreeType distribution from
http://www.freetype.org; that is to say, he downloaded

    http://unc.dl.sourceforge.net/sourceforge/freetype/freetype-1.3.1.tar.gz
    1394 kb

He unpacked FreeType and built it:    ./configure && time make

Then, to build `ttf2bdf', he went into the  freetype-1.3.1/contrib/ttf2bdf/
directory and built that:    ./configure && time make

(He then copied the `ttf2bdf' executable to the `/usr/local/bin/'
directory for convenience.)

In the /usr/X11R6/lib/X11/fonts/misc/ttf-font-dir/ directory, he
downcased the names of the *.ttf files and included them in the
makefile to convert to the appropriate BDF/PCF fonts.  Note that the
font files he downloaded are somewhat different from those listed
above.

He created the following makefile,
/usr/X11R6/lib/X11/fonts/misc/ttf-font-dir/convert2bdf-pcf
with this contents:

TTFS=	asdr0ntt.ttf:Assamese\
        bndr0ntt.ttf:Bengali\
        dvyg0ntt.ttf:Devanagari\
        dvyg1ntt.ttf:Roman\
        gjav0ntt.ttf:Gujarati\
        knum0ntt.ttf:Kannada\
        mlkr0ntt.ttf:Malayalam\
        orsr0ntt.ttf:Oriya\
        pnam0ntt.ttf:Punjabi\
        tlhm0ntt.ttf:Telugu\
        tmvl0ntt.ttf:Tamil\

all:
	for f in ${TTFS}; do \
	  ttf=`echo $$f | sed 's/:.*$$//'`; \
	  reg=`echo $$f | sed 's/[^:]*://'`; \
	  base=`basename $$ttf .ttf`; \
	  echo Converting "$$ttf to $$base-XX.bdf/pcf with registry $$reg"; \
	  for i in 16 24; do \
	    ttf2bdf -p $${i} -r 100 -l 0_255 $$ttf > temp; \
	    sed "/^FONT /s/ISO10646-1/$$reg-CDAC/" <temp >$$base-$$i.bdf; \
	    bdftopcf $$base-$$i.bdf > $$base-$$i.pcf; \
	  done; \
	done
	rm -f temp

clean:
	rm -f *.pcf *.bdf

### end makefile


Then he ran the command:

    make -f convert2bdf-pcf

and it converts the .ttf files to .bdf and .pcf.

He put the PCF fonts into the /usr/X11R6/lib/X11/fonts/misc/
directory with the command:   mv *.pcf ..

Then he used the `xset' command to install the fonts

     xset fp+ /usr/X11R6/lib/X11/fonts/misc/
     xset fp rehash

----------------/


==> But GNU Emacs 21 still did not show the Hindi and Tamil fonts,
using today's GNU Emacs CVS snapshot and today's Debian `testing'
distribution of GNU/Linux.  (I also rebooted the laptop, but that did
no good either.)

What should I do?

-- 
    Robert J. Chassell                         Rattlesnake Enterprises
    http://www.rattlesnake.com                  GnuPG Key ID: 004B4AC8
    http://www.teak.cc                             bob@rattlesnake.com

  reply	other threads:[~2003-02-12 18:17 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11 18:01 no font shown with tamil.el Robert J. Chassell
2003-02-12  0:34 ` Kenichi Handa
2003-02-12  1:09   ` Robert J. Chassell
2003-02-12  8:33     ` Jason Rumney
2003-02-12 18:17       ` Robert J. Chassell [this message]
2003-02-12 19:51         ` Jason Rumney
2003-02-12 20:31           ` Robert J. Chassell
2003-02-12 23:07         ` Raja R Harinath
2003-02-13  2:27           ` Robert J. Chassell
2003-02-13 22:50             ` Raja R Harinath
2003-02-13  0:36         ` Kenichi Handa
2003-02-13  1:44           ` Robert J. Chassell
2003-02-13  2:16             ` Kenichi Handa
2003-02-13  2:54               ` Robert J. Chassell
2003-02-12 20:33   ` Richard Stallman
2003-02-13  0:13     ` Kenichi Handa
2003-02-13 19:27       ` Richard Stallman
2003-02-13 23:11         ` Raja R Harinath
2003-02-13 23:47         ` Kenichi Handa
2003-02-14 11:00           ` Kenichi Handa
2003-02-14 14:35             ` No malayalam glyphs in language/mlm-util.el Robert J. Chassell
2003-02-14 19:58               ` Raja R Harinath
2003-02-14 21:50                 ` Robert J. Chassell
2003-02-14 22:20                   ` Raja R Harinath
2003-02-15  0:43                     ` Robert J. Chassell
2003-02-15  3:16                       ` Ramakrishnan M
2003-02-15  3:34                       ` Ramakrishnan M
2003-02-15 15:40                       ` Robert J. Chassell
2003-02-15 16:00                         ` Ramakrishnan M
2003-02-15 17:54                           ` Benjamin Riefenstahl
2003-02-15 18:29                             ` Raja R Harinath
2003-02-16  5:27                             ` Ramakrishnan M
2003-02-17  6:26                               ` Kenichi Handa
2003-02-17 14:41                                 ` Stefan Monnier
2003-02-18 11:51                                   ` Kenichi Handa
2003-02-19  6:16                                     ` Kenichi Handa
     [not found]                                     ` <87smugyh08.fsf@vsnl.net>
2003-02-24  1:46                                       ` Kenichi Handa
2003-02-20 11:09                             ` Kenichi Handa
2003-02-20 12:26                               ` Juanma Barranquero
2003-02-20 12:50                                 ` Kenichi Handa
2003-02-21 21:43                               ` Richard Stallman
     [not found]                           ` <1045400184.16187.694.camel@uma>
     [not found]                             ` <1045406040.597.28.camel@debian>
2003-02-17 20:36                               ` Richard Stallman
2003-02-17 23:43                                 ` Kenichi Handa
2003-02-14 11:15           ` no font shown with tamil.el Richard Stallman
2003-02-14 10:59         ` 川幡 太一
2003-02-15  7:44           ` Richard Stallman

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=m18j1Ru-000IeAC@localhost \
    --to=bob@rattlesnake.com \
    --cc=handa@m17n.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).