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#21028: Slow font rendering in emacs Date: Mon, 13 Mar 2017 19:05:47 +0200 Message-ID: <83zigpayz8.fsf@gnu.org> References: <559F9FAF.8090708@live.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1489424837 3859 195.159.176.226 (13 Mar 2017 17:07:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Mar 2017 17:07:17 +0000 (UTC) Cc: 21028@debbugs.gnu.org To: Ralf Jung Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 13 18:07:12 2017 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 1cnTR6-0000KM-Qa for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Mar 2017 18:07:08 +0100 Original-Received: from localhost ([::1]:53383 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnTRC-0001zG-UH for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 Mar 2017 13:07:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnTR6-0001z2-3K for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2017 13:07:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnTR1-0004Gk-Qc for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2017 13:07:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55941) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cnTR1-0004GZ-Mr for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2017 13:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cnTR0-0003Dk-DE for bug-gnu-emacs@gnu.org; Mon, 13 Mar 2017 13:07:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Mar 2017 17:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21028 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21028-submit@debbugs.gnu.org id=B21028.148942477312314 (code B ref 21028); Mon, 13 Mar 2017 17:07:02 +0000 Original-Received: (at 21028) by debbugs.gnu.org; 13 Mar 2017 17:06:13 +0000 Original-Received: from localhost ([127.0.0.1]:54140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnTQD-0003CY-0A for submit@debbugs.gnu.org; Mon, 13 Mar 2017 13:06:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60376) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnTQB-0003CI-Cs for 21028@debbugs.gnu.org; Mon, 13 Mar 2017 13:06:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnTQ1-0003gE-Vm for 21028@debbugs.gnu.org; Mon, 13 Mar 2017 13:06:06 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnTQ1-0003fy-MG; Mon, 13 Mar 2017 13:06:01 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3620 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cnTQ1-0001YU-1v; Mon, 13 Mar 2017 13:06:01 -0400 In-reply-to: (message from Ralf Jung on Mon, 13 Mar 2017 16:54:01 +0100) 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:130546 Archived-At: > From: Ralf Jung > Date: Mon, 13 Mar 2017 16:54:01 +0100 > > I think I ran into the issue described here as well: If I am not > careful with the way I configure my fonts, emacs becomes pretty slow at > rendering them. With my old laptop, actually merely navigating the > cursor large files (like > ) > already was noticeably luggish. I don't see any sluggish-ness in "emacs -Q" here, FWIW. Do you have any measurements that would show the slowdown in numbers? Also, what is your value of system-configuration-options and system-configuration-features? And which version of Emacs is that? > Here's the setup which makes things behave badly: > > (dolist (ft (fontset-list)) > ; Main font > (set-fontset-font ft 'unicode (font-spec :name "Monospace" :size 11.0)) > ; Fallback font > (set-fontset-font ft 'unicode (font-spec :name "DejaVu Sans Mono" > :size 11.0) nil 'append) > ) > > And here's the one I use instead, which behaves much better: > > (dolist (ft (fontset-list)) > ; Main font > (set-fontset-font ft 'unicode (font-spec :name "Monospace" :size 11.0)) > ; Fallback font > (set-fontset-font ft nil (font-spec :name "DejaVu Sans Mono" :size 11.0)) > ) > > (For the record, my "Monospace" font is "Fira Sans Mono".) What happens if you don't make any of the above customizations? Also, do you have the Symbola font installed? If not, can you install it and see if that makes things better? > Configuring fonts in emacs to get proper unicode rendering is already > fairly difficult Actually, the default fontset is supposed to "just work", so I'd be interested to hear why you needed to customize that. > it'd be great if this bug could be fixed I'm trying. But it's hard, since for now I cannot even reproduce it. Thanks.