From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: no font shown with tamil.el Date: Wed, 12 Feb 2003 13:17:34 -0500 (EST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1045074403 8624 80.91.224.249 (12 Feb 2003 18:26:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Feb 2003 18:26:43 +0000 (UTC) Cc: handa@m17n.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18j1RT-0001eq-00 for ; Wed, 12 Feb 2003 19:17:07 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18j1dY-0001zd-00 for ; Wed, 12 Feb 2003 19:29:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18j1TY-0004pW-0A for emacs-devel@quimby.gnus.org; Wed, 12 Feb 2003 13:19:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18j1TE-0004ke-00 for emacs-devel@gnu.org; Wed, 12 Feb 2003 13:18:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18j1TC-0004je-00 for emacs-devel@gnu.org; Wed, 12 Feb 2003 13:18:55 -0500 Original-Received: from megalith.rattlesnake.com ([140.186.114.245] helo=localhost) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18j1T9-0004gA-00; Wed, 12 Feb 2003 13:18:51 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.114) Wed, 12 Feb 2003 13:17:34 -0500 (EST) Original-To: Jason Rumney In-reply-to: (message from Jason Rumney on 12 Feb 2003 08:33:30 +0000) Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11595 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11595 Still no success. "Robert J. Chassell" 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 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/" $$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