From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Using different fonts depending on character set Date: Wed, 11 Aug 2004 11:02:14 +0200 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1092215210 22463 80.91.224.253 (11 Aug 2004 09:06:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2004 09:06:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 11 11:06:44 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bup4G-0008Bv-00 for ; Wed, 11 Aug 2004 11:06:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bup86-0001C6-Rb for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Aug 2004 05:10:42 -0400 Original-Newsgroups: gnu.emacs.help,gnu.emacs.gnus Original-Followup-To: gnu.emacs.help 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& User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:Ib9KtqCVfqQNQFyhqz70NzC+d5g= Original-NNTP-Posting-Host: 82.83.143.73 Original-X-Trace: 11 Aug 2004 11:02:19 +0200, 82.83.143.73 Original-Lines: 51 Original-X-Complaints-To: abuse@arcor-ip.de Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!feed.news.tiscali.de!newsfeed.arcor-ip.de!news.arcor-ip.de!82.83.143.73 Original-Xref: shelby.stanford.edu gnu.emacs.help:124732 gnu.emacs.gnus:72243 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20076 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20076 Paul Moore writes: > Emacs 21.3 on Windows, No Gnus from CVS. For 99.99% of my email/news I > get ASCII (or maybe latin-1) text, and I use the default Courier New > font. However, just occasionally, I get messages with odd characters - > often encoded in UTF-8, not always using characters available in > Courier New. For example, I recently saw a message with a short piece > of Japanese text - the rest was basically ASCII. > > Is there a way to set a different font which can be used for such "out > of range" characters? I'd have though not, and yet my email at work > (Outlook - ack, spit) managed to switch fonts just for the Japanese > message (it switched for the whole message, not just for the Japanese > characters, but that's OK). > > This is a very minor issue (after all, it's extremely rare that I get > mail like this, other than spam) but it's a matter of pride - I don't > like to think that Outlook can do something that Gnus can't! [...] It is as you suspect: you can define different fonts for different character sets. A collection of fonts and specifications for which characters to use that font is called a "fontset". For instance, this would adjust the fontset "fontset-standard" to use "palatino linotype" (on MS Windows XP) for a certain range of UCS characters: (set-fontset-font "fontset-standard" 'mule-unicode-0100-24ff "-*-palatino linotype-*-*-r-*-14-*-*-*-*-*-iso10646-1") ;; Use "fontset-standard" (set-face-font 'default "fontset-standard") You can find out to which charset a character in a buffer belongs by hitting `C-u C-x =' with point before that character. See also: (info "(emacs)Defining Fontsets") Does that help? > I suspect this is more of an Emacs question than a Gnus one, hence the > crosspost. Does anyone have any suggestions? It is an Emacs question, follow-up set accordingly to gnu.emacs.help. Oliver -- 25 Thermidor an 212 de la Révolution Liberté, Egalité, Fraternité!