From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.devel Subject: Re: `set-fontset-font' and ascii characters Date: Sun, 25 May 2003 14:17:34 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87isrzb4pt.fsf@ID-87814.user.dfncis.de> References: <87he8kutns.fsf@ID-87814.user.dfncis.de> <200305010810.RAA15007@etlken.m17n.org> <87u1cezhlu.fsf@ID-87814.user.dfncis.de> <200305012353.IAA15973@etlken.m17n.org> <200305020105.KAA16075@etlken.m17n.org> <87isstx7le.fsf@ID-87814.user.dfncis.de> <200305030248.LAA17558@etlken.m17n.org> <87bryj8y94.fsf@ID-87814.user.dfncis.de> <200305050833.RAA20149@etlken.m17n.org> <200305070112.KAA22618@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1053874694 6007 80.91.224.249 (25 May 2003 14:58:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 25 May 2003 14:58:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun May 25 16:58:11 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19Jwwt-0001Y5-00 for ; Sun, 25 May 2003 16:58:11 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19Jx9e-00078O-00 for ; Sun, 25 May 2003 17:11:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19JwyP-0006Ko-Mp for emacs-devel@quimby.gnus.org; Sun, 25 May 2003 10:59:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19JwxZ-0005Ih-MH for emacs-devel@gnu.org; Sun, 25 May 2003 10:58:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19JwxT-000555-15 for emacs-devel@gnu.org; Sun, 25 May 2003 10:58:48 -0400 Original-Received: from mail.gmx.de ([213.165.65.60] helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.20) id 19Jwwy-0004d1-Uk for emacs-devel@gnu.org; Sun, 25 May 2003 10:58:17 -0400 Original-Received: (qmail 26685 invoked by uid 65534); 25 May 2003 14:58:14 -0000 Original-Received: from dialin-145-254-135-240.arcor-ip.net (EHLO HERMES) (145.254.135.240) by mail.gmx.net (mp010) with SMTP; 25 May 2003 16:58:14 +0200 Original-To: Kenichi Handa X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& In-Reply-To: <200305070112.KAA22618@etlken.m17n.org> (Kenichi Handa's message of "Wed, 7 May 2003 10:12:13 +0900 (JST)") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux) 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:14231 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:14231 Kenichi Handa writes: > In article , Oliver Scholz writes: >> If that is going to be reworked (I'd like to help if I can and if you >> want), then maybe it is sufficient to put a fence around the problem >> for now? I.e. raise an error for (set-fontset-font FONTSET 'ascii >> CONS-CELL). That's what I do now in my version of fontset.c. For the >> purpose of making fontsets customizable it is sufficient--I think--if >> I can set the ASCII font with (set-fontset-font FONTSET 'ascii >> FONTNAME). > > Hmmm, ok, I agree. [...] I changed my mind, while working on the customization stuff. I started to implement it according to your previous suggestions. But I realized that specifying a cons cell as FONTNAME argument to `set-fontset-font' does not seem to work with non-ASCII charsets either. I tested it with an Emacs without my modifications: (create-fontset-from-fontset-spec "-b&h-lucidatypewriter-medium-r-*-*-14-*-*-*-*-*-fontset-test") (set-face-font 'default "fontset-test") (set-fontset-font "fontset-test" 'latin-iso8859-1 '("misc-fixed" . "iso8859-1")) Now when I type some umlauts like "äöü" Emacs still displays them in b&h-lucidatypewriter. But it works, when I specify a fontname: (set-fontset-font "fontset-test" 'latin-iso8859-1 "-misc-fixed-*-iso8859-1") Am I missing something? It would, of course, be easy to change `set-fontset-font' to generate a fontname string from such a cons cell, so that: ("misc-fixed" . "iso8859-1") ==> "-misc-fixed-*-iso8859-1". But as far as I understand the code, this is not the way it is supposed to work for non-ASCII fonts, therefore I ask. Oliver -- 6 Prairial an 211 de la Révolution Liberté, Egalité, Fraternité!