From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleksandr Gavenko Newsgroups: gmane.emacs.help Subject: Re: Emacs do not show RU and IPA chars in monospaced font. Date: Wed, 11 Jul 2012 00:00:42 +0300 Organization: At home. Message-ID: <87a9z7e3gl.fsf@desktop.home.int> References: <87txxhq5ww.fsf@desktop.home.int> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1341954069 21109 80.91.229.3 (10 Jul 2012 21:01:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2012 21:01:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 10 23:01:08 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SohYS-0005PW-3Z for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jul 2012 23:01:08 +0200 Original-Received: from localhost ([::1]:51901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SohYR-0007Ub-8k for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jul 2012 17:01:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SohYK-0007UL-BO for help-gnu-emacs@gnu.org; Tue, 10 Jul 2012 17:01:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SohYI-0002qP-BQ for help-gnu-emacs@gnu.org; Tue, 10 Jul 2012 17:00:59 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:51256) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SohYI-0002qE-0x for help-gnu-emacs@gnu.org; Tue, 10 Jul 2012 17:00:58 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SohYE-00057B-H0 for help-gnu-emacs@gnu.org; Tue, 10 Jul 2012 23:00:54 +0200 Original-Received: from 46.185.20.32 ([46.185.20.32]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jul 2012 23:00:54 +0200 Original-Received: from gavenkoa by 46.185.20.32 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jul 2012 23:00:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 136 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 46.185.20.32 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:tFyOImt8s6mNE5x+nPifX8r7bJw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85771 Archived-At: On 2012-07-09, Oleksandr Gavenko wrote: > I try set: > > (set-frame-font "-misc-fixed-medium-r-normal-*-13-*-*-*-*-*-iso10646-*") > > and for russian letter get (ugly bold large letters): > > xft:-Misc-Fixed-normal-normal-normal-ja-13-*-*-*-c-120-iso10646-1 (#x1F= C) > > [SKIP] > > Do I need prepare bug report? I report bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11889 After a while I read: http://emacswiki.org/emacs/SetFonts http://www.emacswiki.org/emacs/FontSets http://www.emacswiki.org/emacs/DisplayingNonAsciiCharacters and corresponding Emacs manuals. That I leaned that I need some tools for viewing selected chars in selected font. For server-side fonts this can be done like: $ xfontsel -sampleUCS '=C9=99=CE=B8=CA=83=C3=A7=CA=A7 =CE=B8=CA=92t=C3= =B0 Hello =D0=9F=D1=80=D0=B8=D0=B2=D0=B5=D1=82!' For client-side font I found: $ gucharmap After looking for several problematic chars I found that they are missing in 13 px size for my font or look wrongly. After playing with configurations I found font that cover all needed my me characters. And learned how use fontsets, here my setup: (set-frame-font "-misc-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1") (set-fontset-font "fontset-default" 'latin "-misc-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1") (set-fontset-font "fontset-default" 'phonetic "-misc-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1") (set-fontset-font "fontset-default" 'cyrillic "-misc-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1") (set-fontset-font "fontset-default" 'greek "-misc-fixed-medium-r-normal--14-*-*-*-c-*-iso10646-1") Another quiz for me was searching of script name symbols for 'set-fontset-font'. Jumping to .c source take 'char-script-table'. After reading manual about built-in types I get this list: (pp (char-table-extra-slot char-script-table 0)) latin phonetic greek coptic cyrillic armenian ... Another useful thing that help me is: (describe-fontset "default-fontset") (describe-fontset "standard-fontset") (describe-fontset "startup-fontset") So algorithm to fix font displaying simple: * Use Emacs >=3D 23.x for UTF support. * Find fonts that cover your chars (xfontsel & gucharmap). * Set fonts as say manual. I Emacs make wrong decision for selected chars, set font manually by 'set-fontset-font'. This func support individual ch= ar, char range and symbolic names (which I use in this post). =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Anyone can tell me test program for client-side fonts that display string t= hat I pass to it? gucharmap show only individual chars (opposed to xfontsel with '-sampleUCS'). This is inconvenient, I like to pass this string to perform on whole text: (defun my-print-range (start end) (let (i) (setq i start) (while (< i end) (ucs-insert i) (setq i (1+ i)) ))) ;; ASCII (my-print-range ?\u0020 ?\u0080) ;; !"#$%&'()*+,-./0123456789:;<=3D>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcd= efghijklmnopqrstuvwxyz{|}~ ;; Cyrillic (my-print-range ?\u0410 ?\u0460) ;; =D0=90=D0=91=D0=92=D0=93=D0=94=D0=95=D0=96=D0=97=D0=98=D0=99=D0=9A=D0= =9B=D0=9C=D0=9D=D0=9E=D0=9F=D0=A0=D0=A1=D0=A2=D0=A3=D0=A4=D0=A5=D0=A6=D0=A7= =D0=A8=D0=A9=D0=AA=D0=AB=D0=AC=D0=AD=D0=AE=D0=AF=D0=B0=D0=B1=D0=B2=D0=B3=D0= =B4=D0=B5=D0=B6=D0=B7=D0=B8=D0=B9=D0=BA=D0=BB=D0=BC=D0=BD=D0=BE=D0=BF=D1=80= =D1=81=D1=82=D1=83=D1=84=D1=85=D1=86=D1=87=D1=88=D1=89=D1=8A=D1=8B=D1=8C=D1= =8D=D1=8E=D1=8F=D1=90=D1=91=D1=92=D1=93=D1=94=D1=95=D1=96=D1=97=D1=98=D1=99= =D1=9A=D1=9B=D1=9C=D1=9D=D1=9E=D1=9F ;; Greek (my-print-range ?\u0391 ?\u03ca) ;; =CE=91=CE=92=CE=93=CE=94=CE=95=CE=96=CE=97=CE=98=CE=99=CE=9A=CE=9B=CE= =9C=CE=9D=CE=9E=CE=9F=CE=A0=CE=A1=CE=A2=CE=A3=CE=A4=CE=A5=CE=A6=CE=A7=CE=A8= =CE=A9=CE=AA=CE=AB=CE=AC=CE=AD=CE=AE=CE=AF=CE=B0=CE=B1=CE=B2=CE=B3=CE=B4=CE= =B5=CE=B6=CE=B7=CE=B8=CE=B9=CE=BA=CE=BB=CE=BC=CE=BD=C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