From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24560: 25.1; With `--font 7x13', wrong font is used for Unicode characters Date: Wed, 28 Sep 2016 23:16:26 +0300 Message-ID: <83shsjok4l.fsf@gnu.org> References: <87zims7zlk.fsf@home.thecybershadow.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1475093843 6187 195.159.176.226 (28 Sep 2016 20:17:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 28 Sep 2016 20:17:23 +0000 (UTC) Cc: 24560@debbugs.gnu.org To: Vladimir Panteleev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 28 22:17:19 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpLI1-0000IS-Mx for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Sep 2016 22:17:13 +0200 Original-Received: from localhost ([::1]:32851 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpLI0-0006fI-7Q for geb-bug-gnu-emacs@m.gmane.org; Wed, 28 Sep 2016 16:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpLHt-0006ep-OS for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2016 16:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpLHq-00034c-JW for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2016 16:17:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpLHq-00034Y-GB for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2016 16:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bpLHq-0006aJ-9k for bug-gnu-emacs@gnu.org; Wed, 28 Sep 2016 16:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Sep 2016 20:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24560 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24560-submit@debbugs.gnu.org id=B24560.147509380325279 (code B ref 24560); Wed, 28 Sep 2016 20:17:02 +0000 Original-Received: (at 24560) by debbugs.gnu.org; 28 Sep 2016 20:16:43 +0000 Original-Received: from localhost ([127.0.0.1]:38201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpLHX-0006Zf-Lt for submit@debbugs.gnu.org; Wed, 28 Sep 2016 16:16:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpLHW-0006ZQ-UR for 24560@debbugs.gnu.org; Wed, 28 Sep 2016 16:16:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpLHO-0002vS-Jv for 24560@debbugs.gnu.org; Wed, 28 Sep 2016 16:16:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpLHO-0002vF-Fe; Wed, 28 Sep 2016 16:16:34 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1347 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bpLHM-0005aL-FE; Wed, 28 Sep 2016 16:16:34 -0400 In-reply-to: <87zims7zlk.fsf@home.thecybershadow.net> (message from Vladimir Panteleev on Wed, 28 Sep 2016 16:34:15 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123742 Archived-At: > From: Vladimir Panteleev > Date: Wed, 28 Sep 2016 16:34:15 +0000 > > On a GNU/Linux system running X.Org, if Emacs is set to use the X11 > fixed font 7x13 (e.g. by specifying `--font 7x13' on the command line), > Emacs will use the incorrect font for Unicode (non-ASCII) > characters. Specifically: > > - US-ASCII characters are rendered using the correct font. > > - Cyrillic (e.g. letters of the Russian alphabet) and some other > characters (e.g. '¢' (CENT SIGN)) are rendered with the 12x13 font > instead of the indicated 7x13 font. > > - Some characters, e.g. '·' (MIDDLE DOT) and '»' (RIGHT-POINTING DOUBLE > ANGLE QUOTATION MARK) are rendered with an 8x13 font. This causes > enabling whitespace-mode to misalign text. Are you sure the 7x13 font installed on your system supports all those characters? Emacs won't switch to a different font if the default font supports the character it needs to display. Or could it be that some customizations, either yours or site-wide, force Emacs to use other fonts for the above characters? > I have found that evaluating the Sexpr: > > (set-fontset-font "fontset-default" 'unicode "-misc-fixed-*-*-*--13-*-*-*-*-70-iso10646-1") > Don't do that, this setting will cause all kinds of surprises. To customize the fonts, use specific character codepoint ranges, and only specify font for a range if the font support most or all of that range.