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: Thu, 29 Sep 2016 18:30:37 +0300 Message-ID: <837f9uoh9e.fsf@gnu.org> References: <87zims7zlk.fsf@home.thecybershadow.net> <83shsjok4l.fsf@gnu.org> <6d2acac2-1134-9182-34c1-b76448872e0b@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1475163164 28987 195.159.176.226 (29 Sep 2016 15:32:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2016 15:32:44 +0000 (UTC) Cc: 24560@debbugs.gnu.org To: Vladimir Panteleev , Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 29 17:32:38 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 1bpdJq-0004pI-HH for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Sep 2016 17:32:18 +0200 Original-Received: from localhost ([::1]:38810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpdJp-0002Jz-0z for geb-bug-gnu-emacs@m.gmane.org; Thu, 29 Sep 2016 11:32:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpdJf-0002I1-38 for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2016 11:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpdJa-00089v-4U for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2016 11:32:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60966) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpdJa-00089r-1W for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2016 11:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bpdJZ-0006Pd-RM for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2016 11:32: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: Thu, 29 Sep 2016 15:32: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.147516307824556 (code B ref 24560); Thu, 29 Sep 2016 15:32:01 +0000 Original-Received: (at 24560) by debbugs.gnu.org; 29 Sep 2016 15:31:18 +0000 Original-Received: from localhost ([127.0.0.1]:38923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpdIp-0006Nu-FI for submit@debbugs.gnu.org; Thu, 29 Sep 2016 11:31:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpdIk-0006NU-Tn for 24560@debbugs.gnu.org; Thu, 29 Sep 2016 11:31:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpdIb-0007nY-64 for 24560@debbugs.gnu.org; Thu, 29 Sep 2016 11:31:05 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpdIV-0007i7-LL; Thu, 29 Sep 2016 11:30:55 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1961 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bpdIR-00027I-0z; Thu, 29 Sep 2016 11:30:55 -0400 In-reply-to: <6d2acac2-1134-9182-34c1-b76448872e0b@gmail.com> (message from Vladimir Panteleev on Wed, 28 Sep 2016 21:58:20 +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:123762 Archived-At: 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.