From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vladimir Panteleev Newsgroups: gmane.emacs.help Subject: Re: Use 7x13 fixed X font for Cyrillic Date: Sat, 27 Feb 2016 21:20:46 -0800 (PST) Message-ID: References: <2b5da096-ab4d-4803-9a62-dbed5c036514@googlegroups.com> <0ea00ce7-49b2-4025-9bad-1c6eefe3cf7e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1456637125 3428 80.91.229.3 (28 Feb 2016 05:25:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Feb 2016 05:25:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 28 06:25:25 2016 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 1aZtrA-0006q3-98 for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Feb 2016 06:25:24 +0100 Original-Received: from localhost ([::1]:57550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZtr6-0000tg-BS for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Feb 2016 00:25:20 -0500 X-Received: by 10.66.163.97 with SMTP id yh1mr7974851pab.11.1456636847551; Sat, 27 Feb 2016 21:20:47 -0800 (PST) X-Received: by 10.50.103.68 with SMTP id fu4mr81291igb.9.1456636847501; Sat, 27 Feb 2016 21:20:47 -0800 (PST) Original-Path: usenet.stanford.edu!hb3no9695402igb.0!news-out.google.com!pn7ni4420igb.0!nntp.google.com!hb3no9695398igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.28.117.31; posting-account=-bDLLQoAAABSuVFbW3VCrbfQMY4zeJ3c Original-NNTP-Posting-Host: 89.28.117.31 User-Agent: G2/1.0 Injection-Date: Sun, 28 Feb 2016 05:20:47 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:217059 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:109352 Archived-At: On Saturday, February 27, 2016 at 11:23:58 PM UTC, Javier wrote: > > Unfortunately that still produces 12x13 Cyrillic glyphs. >=20 > Now I realize what it happens. Latin characters are in 7x13, but > Cyrillic appear in 12x13. >=20 > From (info "(emacs) Modifying Fontsets") >=20 > Fontsets do not always have to be created from scratch. If only mino= r > changes are required it may be easier to modify an existing fontset. > Modifying `fontset-default' will also affect other fontsets that use = it > as a fallback, so can be an effective way of fixing problems with the > fonts that Emacs chooses for a particular script. >=20 > Fontsets can be modified using the function `set-fontset-font', > specifying a character, a charset, a script, or a range of characters > to modify the font for, and a font specification for the font to be > used. Some examples are: >=20 > This should do the job >=20 > ;; Use 7x13 for unicode charset. > (set-fontset-font "fontset-default" 'unicode > "-misc-fixed-medium-r-normal--13-120-75-75-c-70-iso10646-1") Yes, thanks, that worked! Is it possible to also apply this to characters such as =BB, =B7, =A2? They= seem to have a similar problem, and they're all within the 128..255 code p= oint range. I've tried: (set-fontset-font "fontset-default" '(128 . 255) "-misc-fixed-medium-r-norm= al--13-120-75-75-c-70-iso10646-1") ..but that seems to have no effect. I've discovered M-x describe-char, and for =A2 (the cent symbol) it shows: position: 1669 of 2588 (64%), column: 0 character: =A2 (displayed as =A2) (codepoint 162, #o242, #xa2) preferred charset: unicode (Unicode (ISO10646)) code point in charset: 0xA2 script: latin syntax: _ which means: symbol category: .:Base, j:Japanese, l:Latin to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME" buffer code: #xC2 #xA2 file code: #xC2 #xA2 (encoded by coding system utf-8-unix) display: by this font (glyph code) xft:-Misc-Fixed-normal-normal-normal-ja-13-*-*-*-c-120-iso10646-1 (#x63= ) Even though "preferred charset" is "unicode", it seems to prefer using a Ja= panese font for this symbol oddly enough.