From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Beck Newsgroups: gmane.emacs.help Subject: Re: getting unicode chars to show on Windows Date: Fri, 28 Aug 2009 12:40:31 +0200 Message-ID: <87y6p48bmo.fsf@sophokles.streitblatt.de> References: <66341491-5c5b-406a-bb4c-7f02b7709983@t11g2000prh.googlegroups.com> <9b617e7b-9840-499d-b22b-881e4a540a70@h21g2000yqa.googlegroups.com> <6e107769-cd13-43f0-ac9f-8daa9fb83c5e@a39g2000pre.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1251456110 30724 80.91.229.12 (28 Aug 2009 10:41:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Aug 2009 10:41:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xah Lee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 28 12:41:43 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mgytp-0007ez-Uv for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2009 12:41:42 +0200 Original-Received: from localhost ([127.0.0.1]:37156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgytp-00044x-Bm for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Aug 2009 06:41:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mgysu-0003vs-Jp for help-gnu-emacs@gnu.org; Fri, 28 Aug 2009 06:40:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mgysp-0003qD-HV for help-gnu-emacs@gnu.org; Fri, 28 Aug 2009 06:40:43 -0400 Original-Received: from [199.232.76.173] (port=41020 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mgyso-0003pw-UK for help-gnu-emacs@gnu.org; Fri, 28 Aug 2009 06:40:38 -0400 Original-Received: from mo-p05-ob.rzone.de ([81.169.146.181]:19689) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Mgyso-0006JN-Gi for help-gnu-emacs@gnu.org; Fri, 28 Aug 2009 06:40:38 -0400 X-RZG-AUTH: :KmALZ0mpdbGonPxw7gDkop508XQjelhLxGYn4B74/iddlkME3ssvHN/NVn+dtQ6oeNCTE6GWlA== X-RZG-CLASS-ID: mo05 Original-Received: from flo-laptop (p54995018.dip.t-dialin.net [84.153.80.24]) by post.strato.de (fruni mo62) (RZmta 21.0) with ESMTP id v00affl7SAUXf0 ; Fri, 28 Aug 2009 12:40:32 +0200 (MEST) In-Reply-To: <6e107769-cd13-43f0-ac9f-8daa9fb83c5e@a39g2000pre.googlegroups.com> (Xah Lee's message of "Thu, 27 Aug 2009 11:36:31 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:67613 Archived-At: Xah Lee writes: > On Aug 26, 3:09=C2=A0pm, Jason Rumney wrote: >> On Aug 26, 7:35=C2=A0pm, Xah Lee wrote: >> >> > humm... it show for you Eli out of the box. Strange. >> >> Some fonts, particularly CJK ones which tend to cover a substantial >> part of the BMP but have many gaps, seem to get in the way of (nearly) >> full coverage fonts like Arial Unicode MS by default. >> >> > am guessing the problem really needs to be solved by some sort of font >> > substitution. Browsers apparantly are all doing it and perfectly on my >> > machine since they show all chars without user needing to set fonts. >> >> I don't know how the browsers are doing it, perhaps they come with >> predefined lists of fonts that are commonly installed on Windows to >> cover different ranges. >> >> > i guess in emacs that is fontset? I'm not sure if it is just fontset, >> > or emacs also calls the OS's font api to complete part of the >> > display... >> >> Yes, in Emacs that is a fontset, and the difference between what >> people are reporting is caused by the fact that the default fontset >> defines rules that are based on information other than the font name >> by default. =C2=A0If you know what fonts best support different characte= rs >> on your system, I'd recommend redefining the default fontset to use >> your preferred fonts using (set-fontset-font t ... ...). There are >> many examples of using this function in lisp/international/fontset.el, >> along with a list of scripts that Emacs recognizes as the third >> argument (in script-representative-chars); another simple one below: >> >> (set-fontset-font t 'phonetic "Lucida Sans Unicode") > > Thanks. Spent a couple of hours reading about emacs fonts... am still > pretty much nowhere.... agh emacs. Not sure what exactly your problem is, but here are a couple of pointers: To figure out what character ranges, fonts, etc I need, I use this site: http://www.alanwood.net/unicode/fontsbyrange.html Then you simply specify the font you want for specific characters (like Jason wrote), e.g. (set-fontset-font t 'cherokee (font-spec :family "MPH 2B Damase" :size 24)) Instead of the script name 'cherokee you can also use a range '(5024 . 5119) or '(#x13A0 . #x13FF) or specify the first and last character '(?=E1= =8E=A0 . ?=E1=8F=BF). After you have done this for the most important characters you can use something like (set-fontset-font t nil (font-spec :family "Code2000") nil 'prepend) Called with 'prepend, set-fontset-font will only affect characters that had no font previously, so you can use Code2000 as a fallback. If you want to use several fontsets or start from scratch, the easiest way is to define a fontset (create-fontset-from-fontset-spec "-*-DejaVu Sans Mono-medium-r-normal-*-14-*-*-*-*-*-fontset-mono") This fontset will be called fontset-mono, so you would use (set-fontset-font "fontset-mono" 'cherokee (font-spec :family "MPH 2B Damase" :size 24)) to modify it. Hope that helps. =20=20 =20=20 --=20 Florian Beck