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, 08 Oct 2016 16:07:34 +0300 Message-ID: <83y41zgfah.fsf@gnu.org> References: <87zims7zlk.fsf@home.thecybershadow.net> <83shsjok4l.fsf@gnu.org> <6d2acac2-1134-9182-34c1-b76448872e0b@gmail.com> <837f9uoh9e.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1475932113 3105 195.159.176.226 (8 Oct 2016 13:08:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Oct 2016 13:08:33 +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 08 15:08:28 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 1bsrMM-0006tk-EL for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Oct 2016 15:08:14 +0200 Original-Received: from localhost ([::1]:41080 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsrML-0006Rj-0q for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Oct 2016 09:08:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsrME-0006RT-6O for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 09:08:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsrM9-0000ke-VK for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 09:08:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsrM9-0000kZ-SJ for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 09:08:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bsrM9-00071X-MJ for bug-gnu-emacs@gnu.org; Sat, 08 Oct 2016 09:08:01 -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, 08 Oct 2016 13:08:01 +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.147593206026964 (code B ref 24560); Sat, 08 Oct 2016 13:08:01 +0000 Original-Received: (at 24560) by debbugs.gnu.org; 8 Oct 2016 13:07:40 +0000 Original-Received: from localhost ([127.0.0.1]:48355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsrLn-00070q-KM for submit@debbugs.gnu.org; Sat, 08 Oct 2016 09:07:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsrLm-00070e-MM for 24560@debbugs.gnu.org; Sat, 08 Oct 2016 09:07:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsrLg-0000YY-7t for 24560@debbugs.gnu.org; Sat, 08 Oct 2016 09:07:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsrLc-0000X1-7J; Sat, 08 Oct 2016 09:07:28 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2679 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bsrLa-0004F5-L4; Sat, 08 Oct 2016 09:07:27 -0400 In-reply-to: <837f9uoh9e.fsf@gnu.org> (message from Eli Zaretskii on Thu, 29 Sep 2016 18:30:37 +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:124199 Archived-At: 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.