From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: Re: Pango-like font fallback (was Re: Russian numero sign) Date: Wed, 8 Mar 2006 20:16:36 +0200 Message-ID: <200603082016.37147.pogonyshev@gmx.net> References: <200602191431.36541.pogonyshev@gmx.net> <200603072239.29811.pogonyshev@gmx.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1142015139 6722 80.91.229.2 (10 Mar 2006 18:25:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2006 18:25:39 +0000 (UTC) Cc: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 10 19:25:38 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FHmIz-00067u-Qp for ged-emacs-devel@m.gmane.org; Fri, 10 Mar 2006 19:25:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FHmIz-0003ye-37 for ged-emacs-devel@m.gmane.org; Fri, 10 Mar 2006 13:25:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FH3Bs-00052V-D0 for emacs-devel@gnu.org; Wed, 08 Mar 2006 13:15:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FH3Bq-0004qx-88 for emacs-devel@gnu.org; Wed, 08 Mar 2006 13:15:15 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FH3Bq-0004pv-4F for emacs-devel@gnu.org; Wed, 08 Mar 2006 13:15:14 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.52) id 1FH3Ej-0008J4-15 for emacs-devel@gnu.org; Wed, 08 Mar 2006 13:18:13 -0500 Original-Received: (qmail invoked by alias); 08 Mar 2006 18:15:11 -0000 Original-Received: from unknown (EHLO [194.158.218.214]) [194.158.218.214] by mail.gmx.net (mp006) with SMTP; 08 Mar 2006 19:15:11 +0100 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.7.2 In-Reply-To: Content-Disposition: inline X-Y-GMX-Trusted: 0 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:51431 Archived-At: Kenichi Handa wrote: > Paul Pogonyshev writes: > > >> Please note that Pango and the other modern rendering > >> engines use TrueType font with a help of freetype/Xft and > >> fontconfig libraries. Emacs (and emacs-unicode-2 too) > >> currently doesn't use them, but there exists an ongoing > >> project for supporting TTF in Emacs. > > > That is a valid reason why Emacs cannot use Pango (yet), but it > > doesn't mean Emacs cannot implement similar substitution heuristic > > without Pango and for a different font class. As I understand, you > > did that in the `emacs-unicode-2' branch. It is not something simple, > > but Emacs is not simple to begin with. > > I drastically changed the internal structure of fontset in > emacs-unicode-2. We can't do such a change for the HEAD > (which will be the next release, I hope, soon). Right, I mentioned in some of the previous messages that I'm not proposing this for HEAD. > >> First of all, do you have any iso10646-1 X core fonts that > >> support Cyrillic characters? > > > No idea, sorry. How do I check? As I wrote above, Emacs does > > display Cyrillic characters (newly typed) when `unify-8859-on-decoding' > > is off. And already existing characters are displayed no matter if > > that mode is active or not. > > % xlsfonts -fn -*-*-medium-r-normal-*-*-*-*-*-*-*-iso10646-1 > > gives you a list of iso10646-1 X core fonts usable from > Emacs. For instance, if this font is found... > -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1 > > % xfd -fn -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1 > > shows you the supported glyphs. Please check the block > 0x000400. If you see cyrillic glyphs there, that font is > what you need. You can do this to use that font. > > [...] Yes, I have Cyrillic characters in misc-fixed and don't have them in adobe-courier. I went to install all the fonts I could find in my Debian Sarge. And found cronyx-courier font, which looks nice _and_ has Cyrillic characters. However, when I customize the default face in Emacs and set that font family, latin characters are still displayed in adobe-courier (though Cyrillic ones are shown in cronyx-courier)... And the customization doesn't take any effect after I restart Emacs... Any ideas? Paul