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: Fri, 18 Nov 2016 10:48:25 +0200 Message-ID: <8360nldvhi.fsf@gnu.org> References: <87zims7zlk.fsf@home.thecybershadow.net> <83shsjok4l.fsf@gnu.org> <6d2acac2-1134-9182-34c1-b76448872e0b@gmail.com> <837f9uoh9e.fsf@gnu.org> <83y41zgfah.fsf@gnu.org> <83shrx1z4u.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1479458957 25430 195.159.176.226 (18 Nov 2016 08:49:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2016 08:49:17 +0000 (UTC) Cc: 24560@debbugs.gnu.org, thecybershadow@gmail.com To: handa@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 18 09:49:12 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 1c7er9-0005te-SM for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Nov 2016 09:49:12 +0100 Original-Received: from localhost ([::1]:35181 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7erD-0004uL-9m for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Nov 2016 03:49:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50034) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7er4-0004t3-2Y for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2016 03:49:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7er0-0001GL-RS for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2016 03:49:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45892) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7er0-0001GH-Nt for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2016 03:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c7er0-0001CH-I0 for bug-gnu-emacs@gnu.org; Fri, 18 Nov 2016 03:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Nov 2016 08:49: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.14794589164565 (code B ref 24560); Fri, 18 Nov 2016 08:49:02 +0000 Original-Received: (at 24560) by debbugs.gnu.org; 18 Nov 2016 08:48:36 +0000 Original-Received: from localhost ([127.0.0.1]:33058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7eqa-0001BZ-H7 for submit@debbugs.gnu.org; Fri, 18 Nov 2016 03:48:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:58883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7eqZ-0001BL-LF for 24560@debbugs.gnu.org; Fri, 18 Nov 2016 03:48:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7eqT-00018Q-BA for 24560@debbugs.gnu.org; Fri, 18 Nov 2016 03:48:30 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60939) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7eqM-00012M-4q; Fri, 18 Nov 2016 03:48:22 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2290 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c7eqL-0004iF-3K; Fri, 18 Nov 2016 03:48:21 -0500 In-reply-to: <83shrx1z4u.fsf@gnu.org> (message from Eli Zaretskii on Sat, 15 Oct 2016 17:10:41 +0300) 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:125818 Archived-At: Ping! Ping! > Date: Sat, 15 Oct 2016 17:10:41 +0300 > From: Eli Zaretskii > Cc: 24560@debbugs.gnu.org, thecybershadow@gmail.com > > Ping! Ping! > > Kenichi, could you please comment on this issue? > > > Date: Sat, 08 Oct 2016 16:07:34 +0300 > > From: Eli Zaretskii > > Cc: 24560@debbugs.gnu.org, thecybershadow@gmail.com > > > > Ping! > > > > > Date: Thu, 29 Sep 2016 18:30:37 +0300 > > > From: Eli Zaretskii > > > Cc: 24560@debbugs.gnu.org > > > > > > Adding Handa-san to this discussion, in the hope that he could shed > > > some light on this issue. > > > > > > > From: Vladimir Panteleev > > > > Cc: 24560@debbugs.gnu.org > > > > Date: Wed, 28 Sep 2016 21:58:20 +0000 > > > > > > > > On 2016-09-28 20:16, Eli Zaretskii wrote: > > > > > 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. > > > > > > > > As I mentioned in my bug report and as is visible in the screenshots, > > > > the characters are indeed present in the font and are rendered correctly > > > > in other applications. Only Emacs exhibits this problem. > > > > > > > > > Or could it be that some customizations, either yours or site-wide, > > > > > force Emacs to use other fonts for the above characters? > > > > > > > > This problem is reproducible with "emacs -Q", without any > > > > customizations, on all distributions I've tried. > > > > > > Then I guess there's some factor at work here that I don't quite > > > figure out. Maybe the Emacs font selection algorithm doesn't like > > > that font for some reason? > > > > > > If you start Emacs with 12x13 font or 8x13, does Emacs display more > > > characters than 7x13 before it switches to another font? > > > > > > > Here is a complete recipe using a live CD, to remove any possibility of > > > > user or site customization: > > > > > > > > 1. Get the Antergos live ISO ( > > > > https://antergos.com/download/antergos-live-iso/ ) and boot from it > > > > (e.g. in a VM). > > > > 2. Choose "Start Antergos live". > > > > 3. Choose "Try It". > > > > 4. Install Emacs and urxvt (in a terminal, run "pacman -S emacs > > > > rxvt-unicode"). > > > > 5. Run "emacs -Q --font 7x13". > > > > 6. M-x view-hello-file > > > > 7. Observe that Cyrillic characters are rendered in a 12x13 font. > > > > 8. Run "urxvt -fn 7x13". > > > > 9. Copy some Cyrillic characters from Emacs and paste them in urxvt. > > > > 10. Observe that urxvt renders the Cyrillic characters correctly, in the > > > > correct font. > > > > > > > > This is not specific to Arch / Antegros: The problem is also > > > > reproducible on Ubuntu and Fedora Workstation Live CDs, though you may > > > > have to also install some font packages (xorg-x11-fonts-misc for > > > > Fedora), and Emacs uses the 8x13 font for Cyrillic characters (so the > > > > problem is less obvious). urxvt still uses the correct font there. > > > > > > > > >> 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. > > > > > > > > Noted. However, immediately lacking a better concrete workaround, I > > > > don't have a better option at my disposal. > > > > > > Hopefully, Handa-san will have some advice here. > > > > > > > > > > > >