From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Raja R Harinath Newsgroups: gmane.emacs.devel Subject: Re: no font shown with tamil.el Date: Thu, 13 Feb 2003 16:50:20 -0600 Organization: Dept. of Computer Science, Univ. of Minnesota Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045176682 17544 80.91.224.249 (13 Feb 2003 22:51:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 13 Feb 2003 22:51:22 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18jSBi-0004WI-00 for ; Thu, 13 Feb 2003 23:50:38 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18jSOD-0001gn-00 for ; Fri, 14 Feb 2003 00:03:41 +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 18jSDf-0005Bp-00 for emacs-devel@quimby.gnus.org; Thu, 13 Feb 2003 17:52:39 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18jSD8-00058n-00 for emacs-devel@gnu.org; Thu, 13 Feb 2003 17:52:06 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18jSCP-0004oB-00 for emacs-devel@gnu.org; Thu, 13 Feb 2003 17:51:21 -0500 Original-Received: from main.gmane.org ([80.91.224.249]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18jSC0-0004gT-00 for emacs-devel@gnu.org; Thu, 13 Feb 2003 17:50:56 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18jS9R-0004Ly-00 for ; Thu, 13 Feb 2003 23:48:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 18jS9F-0004KD-00 for ; Thu, 13 Feb 2003 23:48:05 +0100 Original-Lines: 72 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Cancel-Lock: sha1:NXDkKoGwcXke3Zl7PLO19Gd7URw= 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:11630 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11630 Hi, "Robert J. Chassell" writes: > Handa-san's suggestion, involving the `mkfontdir' command, worked so I > have not tried yours. (I have appended yours to remind people which > it is.) I assumed that your fonts were setup completely. I missed that you didn't have 'mkfontdir' there. > Which suggestion would be better in the long run? My suggestion is subordinate :-) You can't do anything useful without the 'mkfontdir'. > For example, I start my regular Emacs under GDB with the command: > > run -q -l ~bob/.emacs-21 -bg darkblue -fg white \ > -fn '-Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1' \ > -geometry 80x52+120+45 \ > -name 'GNU Emacs 21' > > The `frame-parameters' function tells me (font . "10x20")) > No `fontset-startup' or `fontset-default'. Evidentally, the `-fn' > argument does not define one. Moreover > > (query-fontset (frame-parameter nil 'font)) > > returns nil in my regular Emacs. Am I right in thinking I have no > default or startup fontset? I think so. I don't know how this works, either. > (On the other land, in a plain vanilla Emacs, started under GDB with > the command: > > run -q --no-site-file --eval '(blink-cursor-mode 0)' > > the `query-fontset' expression returns > "-etl-*-medium-r-normal-*-16-*-*-*-*-*-fontset-16". Does this mean > that its default fontset is "fontset-16"?) Looks like it. In emacs from CVS, I think it is 'fontset-default'. That fontset is the only one that appears to be prepared to show tamil/telugu/kannada/... once the corresponding lng-util.el is written. > (let ((current-fontset (query-fontset (frame-parameter nil 'font)))) > (when current-fontset > (load-library "quail/indian") > > (set-fontset-font current-fontset > (cons (decode-char 'ucs ?\x0900) > (decode-char 'ucs ?\x097f)) > (cons "*" "iso10646.indian-1")) > > (mapc > (lambda (lsym) > (set-fontset-font current-fontset > (cons (indian-glyph-char 0 lsym) > (indian-glyph-char 255 lsym)) > (cons "*" (concat (symbol-name lsym) "-cdac")))) > indian-script-table))) This code parallels 'setup-fontset-default' in international/fontset.el. These glyphsets are not listed in 'x-font-name-charset-alist' and so aren't setup for all fontsets. - Hari -- Raja R Harinath ------------------------------ harinath@cs.umn.edu