From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sand@blarg.net Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Re: ftfont ISO10646-1 font bug found (was Re: 23.0.60; Heavy display problems with new font backend) Date: Sun, 11 May 2008 15:32:50 -0700 Message-ID: <18471.29714.676071.4377@priss.frightenedpiglet.com> References: <87hcdy6srx.fsf@baldur.tsdh.de> <4809F8AC.8000802@gnu.org> <87skxgbtlm.fsf@localhorst.mine.nu> <18445.25224.874018.531866@priss.frightenedpiglet.com> <874p9uw77k.fsf@localhorst.mine.nu> <18460.40869.171854.738262@priss.frightenedpiglet.com> <18462.48548.616317.968827@priss.frightenedpiglet.com> <18465.13215.537191.430206@priss.frightenedpiglet.com> <18467.55964.443458.171763@priss.frightenedpiglet.com> <482407C5.5050702@gnu.org> <18468.22622.587359.454111@priss.frightenedpiglet.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210545154 24557 80.91.229.12 (11 May 2008 22:32:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 May 2008 22:32:34 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 12 00:33:10 2008 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 1JvK6O-0002Tj-9Q for ged-emacs-devel@m.gmane.org; Mon, 12 May 2008 00:33:08 +0200 Original-Received: from localhost ([127.0.0.1]:56910 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvK5f-0002th-EE for ged-emacs-devel@m.gmane.org; Sun, 11 May 2008 18:32:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JvK5c-0002tc-2T for emacs-devel@gnu.org; Sun, 11 May 2008 18:32:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JvK5a-0002tQ-Mo for emacs-devel@gnu.org; Sun, 11 May 2008 18:32:18 -0400 Original-Received: from [199.232.76.173] (port=47771 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JvK5a-0002tN-HJ for emacs-devel@gnu.org; Sun, 11 May 2008 18:32:18 -0400 Original-Received: from v-static-143-234.avvanta.com ([206.124.143.234]:46109 helo=priss.frightenedpiglet.com) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JvK5Z-0005G8-T9 for emacs-devel@gnu.org; Sun, 11 May 2008 18:32:18 -0400 Original-Received: (qmail 13701 invoked by uid 1000); 11 May 2008 22:32:50 -0000 In-Reply-To: <18468.22622.587359.454111@priss.frightenedpiglet.com> X-Mailer: VM 8.0.9 under Emacs 23.0.60.1 (i486-pc-linux-gnu) X-URL: http://home.blarg.net/~sand X-detected-kernel: by monty-python.gnu.org: 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:96986 Archived-At: sand@blarg.net writes: > Jason Rumney writes: > > Kenichi Handa is probably the only person qualified to comment, and he > > said early this week that he won't have time to spend on Emacs this > > week, so please remain patient. > > > > In the meantime, you might like to check out the font-backend branch, as > > the bug may already be fixed there, or your patch may need adapting to it. > > Thanks. I'll construct a patch for "font-backend" as well and send it. The font-backend branch has the same problem, and essentially the same patch works for it. It's not worth constructing a separate patch for that branch. Plus, it looks like the patch itself, while useful, is fixing secondary problems rather than root problems. I decided to try attacking the issues at the Lisp level. Most of the problems seem to be caused by bad configuration in "fontset.el". I have appended the Lisp code I came up with to get my environment (almost) working. The exception is Korean syllabics, which show up fine with the old backend (using Daewoo Mincho KSC5601.1987) but don't show up at all with the new one. The fontset declaration looks okay, so I'm going to keep digging. -- Derek Upham sand@blarg.net ------------------------------ cut here ------------------------------ (eval-after-load "fontset" '(progn ;; Representative characters for Latin need to include the ;; various extension blocks. This should replace the existing ;; definition. (setq script-representative-chars (cons '(latin ?A ?Z ?a ?z #x00C0 #x0100 #x0180 #x1e00) script-representative-chars)) ;; Representative characters for symbols were not defined. (setq script-representative-chars (cons '(symbol #x201C #x2200 #x2500) script-representative-chars)) ;; Representative characters for phonetics were not defined. (setq script-representative-chars (cons '(phonetic #x0250 #x0283) script-representative-chars)))) ;; No fontset was defined for Armenian. (set-fontset-font "fontset-default" 'armenian (font-spec :registry "iso10646-1" :script 'armenian)) ;; The Thai fontset definition assumes that you have OpenType ;; definitions set up properly. We need an explicit :script ;; declaration as a backup. I think this should go after the :otf ;; declaration, but I'm doing it as a 'prepend here. (Perhaps ;; FreeSerif Thai fonts comply with OpenType, but Misc-Fixed ;; ones don't.) (set-fontset-font "fontset-default" 'thai (font-spec :registry "iso10646-1" :script 'thai) nil 'prepend) ;; 'latin script needs a declaration that incorporates the Latin ;; representative characters. None of the current ones do. (set-fontset-font "fontset-default" 'latin (font-spec :registry "iso10646-1" :script 'latin) nil 'prepend) ;; No 'symbol script declaration exists. Create one using the new ;; representative characters. (set-fontset-font "fontset-default" 'symbol (font-spec :registry "iso10646-1" :script 'symbol)) ;; No 'phonetic declaration exists. Create one using the new ;; representative characters. (Note that there is an 'ipa ;; declaration, but 'ipa doesn't exist as a real script.) (set-fontset-font "fontset-default" 'phonetic (font-spec :registry "iso10646-1" :script 'phonetic))