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: Sat, 15 Oct 2016 17:10:41 +0300 Message-ID: <83shrx1z4u.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> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1476540685 25234 195.159.176.226 (15 Oct 2016 14:11:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Oct 2016 14:11:25 +0000 (UTC) Cc: 24560@debbugs.gnu.org, thecybershadow@gmail.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 15 16:11:21 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 1bvPgB-0005F0-82 for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Oct 2016 16:11:15 +0200 Original-Received: from localhost ([::1]:52108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvPgA-0005n5-1r for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Oct 2016 10:11:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvPg3-0005mI-1L for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2016 10:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvPfy-0004p5-P6 for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2016 10:11:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53839) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bvPfy-0004p0-Kv for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2016 10:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bvPfy-0000uK-G4 for bug-gnu-emacs@gnu.org; Sat, 15 Oct 2016 10:11: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: Sat, 15 Oct 2016 14:11: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.14765406613476 (code B ref 24560); Sat, 15 Oct 2016 14:11:02 +0000 Original-Received: (at 24560) by debbugs.gnu.org; 15 Oct 2016 14:11:01 +0000 Original-Received: from localhost ([127.0.0.1]:60027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvPfw-0000tz-Tv for submit@debbugs.gnu.org; Sat, 15 Oct 2016 10:11:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bvPfv-0000tc-2S for 24560@debbugs.gnu.org; Sat, 15 Oct 2016 10:10:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvPfo-0004lL-Ro for 24560@debbugs.gnu.org; Sat, 15 Oct 2016 10:10:53 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvPfi-0004jj-Am; Sat, 15 Oct 2016 10:10:46 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4595 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bvPfg-0006os-C9; Sat, 15 Oct 2016 10:10:44 -0400 In-reply-to: <83y41zgfah.fsf@gnu.org> (message from Eli Zaretskii on Sat, 08 Oct 2016 16:07:34 +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:124514 Archived-At: 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. > > > >