From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: fontset/font change Date: Wed, 11 Mar 2009 22:50:26 +0900 Message-ID: <87ljrcb23h.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236779453 28556 80.91.229.12 (11 Mar 2009 13:50:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2009 13:50:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 11 14:52:09 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LhOqv-0007sq-G4 for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2009 14:52:09 +0100 Original-Received: from localhost ([127.0.0.1]:42790 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhOpZ-0007UB-NU for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2009 09:50:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhOpV-0007TO-6X for emacs-devel@gnu.org; Wed, 11 Mar 2009 09:50:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhOpT-0007Qu-Ak for emacs-devel@gnu.org; Wed, 11 Mar 2009 09:50:40 -0400 Original-Received: from [199.232.76.173] (port=34760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhOpT-0007Qi-63 for emacs-devel@gnu.org; Wed, 11 Mar 2009 09:50:39 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:33310 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LhOpT-0007L8-0K for emacs-devel@gnu.org; Wed, 11 Mar 2009 09:50:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LhOpQ-0001Tc-3h for emacs-devel@gnu.org; Wed, 11 Mar 2009 13:50:36 +0000 Original-Received: from 218.231.175.8.eo.eaccess.ne.jp ([218.231.175.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Mar 2009 13:50:36 +0000 Original-Received: from miles by 218.231.175.8.eo.eaccess.ne.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Mar 2009 13:50:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 218.231.175.8.eo.eaccess.ne.jp System-Type: x86_64-unknown-linux-gnu Cancel-Lock: sha1:w/60mcXzvlma6Thn80V2FbM3dWc= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109562 Archived-At: I have been using the following bit of code in my .emacs: ;; ugh... force use of Droid Sans Fallback for all non-roman chars (let ((fontset (frame-parameter nil 'font))) (unless (equal fontset "tty") (set-fontset-font fontset 'unicode "Droid Sans Fallback"))) As of today, it no longer seems to work (because the fontset names seem to be different now, and no longer match the font name). The intent is to use the font "Droid Sans Fallback" to render anything that the default font can't (the default font is "Droid Sans Mono", so they're matched in style etc); "Droid Sans Fallback" contains things like CJK characters. If I don't do this, then emacs tends to pick various random fonts for CJK characters (e.g., Sazanami for japanese). Is there a better way to do this, which works in the current Emacs? Thanks, -Miles -- Patience, n. A minor form of despair, disguised as a virtue.