From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: fontset/font change Date: Wed, 11 Mar 2009 22:05:18 +0800 Message-ID: <49B7C51E.6020507@gnu.org> References: <87ljrcb23h.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1236780426 32124 80.91.229.12 (11 Mar 2009 14:07:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2009 14:07:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 11 15:08:22 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 1LhP5c-0005e9-TF for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2009 15:07:21 +0100 Original-Received: from localhost ([127.0.0.1]:45491 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhP4H-000083-3u for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2009 10:05:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhP4C-00005r-Pw for emacs-devel@gnu.org; Wed, 11 Mar 2009 10:05:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhP4B-0008U2-71 for emacs-devel@gnu.org; Wed, 11 Mar 2009 10:05:52 -0400 Original-Received: from [199.232.76.173] (port=40028 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhP4B-0008Tm-46 for emacs-devel@gnu.org; Wed, 11 Mar 2009 10:05:51 -0400 Original-Received: from ti-out-0910.google.com ([209.85.142.190]:4288) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhP48-0000XD-OM; Wed, 11 Mar 2009 10:05:49 -0400 Original-Received: by ti-out-0910.google.com with SMTP id j3so8785tid.10 for ; Wed, 11 Mar 2009 07:05:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Pk9rpInb9YL9+rcGbwqtlaI4KAIxQS3gxpoefiwvJdg=; b=xVkJS7AB1ufISVJJHORF/PWN6rZZEzUQsHnxIwvZZ2dV11hCDEQfk6Tg/hgS8icldG JNQtTXFCOukTUmAd2JMH4XLFMNNSAi8BNhdOKoh7jpU3fVT7sqArmDdw+I29m3wXVIpC /7KhkbHRluVC6Nz8TAUpbX7SiUgpSY+9yCLuA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=xOLpEVJUjn2RD+ZUeIwBatfVkP6aex1wpbqRbWQg5cv7F+BMh3SJPtNT0NkOuH0olF +c77r7d+sGI1QTKL/poWD9w7eB7RZcdyUxcChzl9uGaZh0yPr9Audle8TpFTB5M7+oXh 5jSkgZvSkQrg2i9KT9DRFVGJKYw3CETSYuGKU= Original-Received: by 10.110.49.6 with SMTP id w6mr9914201tiw.44.1236780346314; Wed, 11 Mar 2009 07:05:46 -0700 (PDT) Original-Received: from ?192.168.249.26? ([118.101.148.188]) by mx.google.com with ESMTPS id a4sm1259120tib.31.2009.03.11.07.05.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Mar 2009 07:05:45 -0700 (PDT) User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <87ljrcb23h.fsf@catnip.gol.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:109563 Archived-At: Miles Bader wrote: > 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). > As of now, something still seems to be broken (see bug#2637). On Windows, I get the message "Can't set a font for partial ASCII range." This seems to be coming from line 1511 of fontset.c, while processing one of these lines (maybe the latin-jisx0201 line) from term/w32-win.el; TARGET is the integer 33: ;; Enable Japanese fonts on Windows to be used by default. (set-fontset-font t (make-char 'katakana-jisx0201) '("*" . "JISX0208-SJIS")) (set-fontset-font t (make-char 'latin-jisx0201) '("*" . "JISX0208-SJIS")) (set-fontset-font t (make-char 'japanese-jisx0208) '("*" . "JISX0208-SJIS")) (set-fontset-font t (make-char 'japanese-jisx0208-1978) '("*" . "JISX0208-SJIS"))