unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Robert J. Chassell" <bob@rattlesnake.com>
Cc: emacs-devel@gnu.org
Subject: Re: no font shown with tamil.el
Date: Thu, 13 Feb 2003 01:44:48 +0000 (UTC)	[thread overview]
Message-ID: <m18j8Qi-000IeAC@localhost> (raw)
In-Reply-To: <200302130036.JAA08393@etlken.m17n.org> (message from Kenichi Handa on Thu, 13 Feb 2003 09:36:49 +0900 (JST))

Thank you!  Success!  At least success in showing Hindi and Tamil
fonts in the HELLO buffer after running the `mkfontdir' command,
followed again by the `xset' commands.    (I have revised my `example'
text and appended it below.)

However, I was not able to see any fonts glyphs with the `xfd'
command on the `cdac' font.  This command:

   xfd -fn -altsys-DV_TTSurekh-medium-r-normal--20-0-0-0-p-0-devanagari-cdac

gave me this error message:

    Warning: Cannot convert string
    "-altsys-DV_TTSurekh-medium-r-normal--20-0-0-0-p-0-devanagari-cdac" to
    type FontStruct
    xfd:  no font to display

But I do see glyphs with the following command:

   xfd -fn *-cdac

This shows me the glyphs for

    TTDurga-Medium-R-Normal--22-160-100-100-P-74-Assamese-CDAC

However, the command 

   xfd -fn TTDurga-Medium-R-Normal--22-160-100-100-P-74-Assamese-CDAC

fails.

(I moved my *.ttf and *.bdf files to the
/usr/X11R6/lib/X11/fonts/misc/ directory, along with the *.pcf files.)



As for the success:

Here is text for .....emacs/INSTALL that describes what I did that is
successful.  I added text about using "mkfontdir" and "xlsfonts -fn '*-cdac'"


    For     .....emacs/INSTALL
    following the end of the sample Indian fonts makefile

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

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 moved all the fonts into the /usr/X11R6/lib/X11/fonts/misc/
directory with the commands:

    mv *.pcf ..
    mv *.bdf ..
    mv *.ttf ..

Then he used the `mkfontdir' and `xset' commands to install the fonts

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

He confirmed that the fonts are available to Emacs with this command:

     xlsfonts -fn '*-cdac'

and was able to see all of them by starting a fresh instance of GNU
Emacs and typing `C-h h' (view-hello-file)

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

-- 
    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-13  1:44 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
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 [this message]
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=m18j8Qi-000IeAC@localhost \
    --to=bob@rattlesnake.com \
    --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).