From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Moses Newsgroups: gmane.emacs.bugs Subject: bug#32159: 26.1; inhibit-compacting-font-caches does not fix all fonts lagging issue Date: Sun, 22 Jul 2018 14:52:54 +0000 Message-ID: References: <83muut9q8m.fsf@gnu.org> <45c210aa-5a57-45f7-9bd4-752876b233c2@default> <8336wj9s5d.fsf@gnu.org> <83y3ea7ff4.fsf@gnu.org> <83tvox7vi7.fsf@gnu.org> <8336wbxt3f.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1532271131 27533 195.159.176.226 (22 Jul 2018 14:52:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2018 14:52:11 +0000 (UTC) Cc: 32159@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 22 16:52:07 2018 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 1fhFiQ-00070g-Vv for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jul 2018 16:52:07 +0200 Original-Received: from localhost ([::1]:56282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhFkW-0006OP-Bw for geb-bug-gnu-emacs@m.gmane.org; Sun, 22 Jul 2018 10:54:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhFkM-0006OB-10 for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2018 10:54:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhFkI-00078H-Ra for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2018 10:54:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47511) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fhFkI-00078D-NM for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2018 10:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fhFkI-0001QN-Dz for bug-gnu-emacs@gnu.org; Sun, 22 Jul 2018 10:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Moses Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Jul 2018 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32159-submit@debbugs.gnu.org id=B32159.15322712205441 (code B ref 32159); Sun, 22 Jul 2018 14:54:02 +0000 Original-Received: (at 32159) by debbugs.gnu.org; 22 Jul 2018 14:53:40 +0000 Original-Received: from localhost ([127.0.0.1]:52529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhFjw-0001Ph-E5 for submit@debbugs.gnu.org; Sun, 22 Jul 2018 10:53:40 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:45001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhFju-0001PQ-9u for 32159@debbugs.gnu.org; Sun, 22 Jul 2018 10:53:38 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id r16-v6so15414497wrt.11 for <32159@debbugs.gnu.org>; Sun, 22 Jul 2018 07:53:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yBzGwPSQeDhDUGTAbU2a19O+GPp6bajp13cIVHqKJHQ=; b=amE7ZaARHlS4WG2/tEDOvgGD+9dPZpLA1OfPwIw9Wfe1+WlUw0jQi86RwRva2FkMKI Lx/6nd0TWdPwnFNBmuVDM4AJ+CCZNOlY2Eyn+796TFwLNn5FRCkXPJTRr19ea8RgIBzb CJkWPyEbkfWlY6gTrAkCk8UbC47yqYfY7cqCD+U6avqStKBkMNDL8r6upSwxHMMt9key z/5S3mXp/X2SKM7Xrb+Ww01sYBfjqkwNXIFs8GNHgP6XnXPhz+aR5a2ZQmYFgLdPEaeh EFxZCDEQFmgJH27tk0bOtpaGmB5sso5aZ/VgEb4LBvXRdxJ6VnshcBkAbAIAbavSArd8 SPxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yBzGwPSQeDhDUGTAbU2a19O+GPp6bajp13cIVHqKJHQ=; b=sh9q17gjZGvCpQWA9fmnelZnTFM64EWPe7eOIzt8B9P/u5n2zgM4P8RuNaEaY3d8IH XZSbrEHotkGZUWdrupY+PhGkTkFgKsspu4ZbCAGh6SE2R23jGlAqw1yrYHhO2fjdbf79 vAOjiuJnasxtVgaoMpNVJuGo5ed4O5h4cgSZC9iB8uw73JzU9E+AA7Ajuqw/KSBZSqUy 07lRSSIf6dPYM6Uh0CPIBJS6WVNKnN4IlZyUJHbA5o0pVUULhPP2FMVjvlXZLi94MXWM oUxTRFxsCva3dIqwBcmEDTg9dgRVTjfpOhWQaHTkgF7P+CUhdcN2MAWZC8G0GceH//fg EyfA== X-Gm-Message-State: AOUpUlFN3n2Wq8eOvxSnF6T2pyXFMNOG2XZPKAZ0UUAxBg76dn8yJ1Yj LApM2Yy1ASaSWw/Zm5RmcSrZpI1z1yzVNHvadE8= X-Google-Smtp-Source: AAOMgpdXww/FY5q0RpYqwMltEX/Ux1v4UdJZVrY6oJnRxVQ/1ZOyz/s/qfACiGA2L25vpMO9BJpq5NQSpFXM3acaMM0= X-Received: by 2002:a5d:4306:: with SMTP id h6-v6mr6295540wrq.58.1532271212461; Sun, 22 Jul 2018 07:53:32 -0700 (PDT) In-Reply-To: <8336wbxt3f.fsf@gnu.org> 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:148813 Archived-At: On Sun, Jul 22, 2018 at 2:06 PM Eli Zaretskii wrote: > Can you try to make this a little more quantitative? How long did it > take before and how long after the fontset customizations? Gnus was usually stopped responding and lagging several seconds when scrolling before the fontset customization. It is much better now. > And why > did you need many failed trials, what was the problem that prevented > you from succeeding on the first trial? I need to pair every fonts name and script name for every script/language but I do not know the font name for some scripts/languages. So I leave Emacs to find the correct font and use M-x descript-char on these language's character to find the font name. When there are many languages, it takes some time. And I also found I made some mistake before, so I need to delete the incorrect one and repeat these step for that specific script/language again. > Which scripts are the ones for which you needed to customize the > fontset? I mean in your real-life use cases, not for displaying > HELLO. This is my font setting, the Linux part is not complete, because currently, I am on my Windows box. ;; font (setq font-encoding-alist (append '(("gb2312.1980" . chinese-gbk) ("iso8859-1$" . iso-8859-1) ("iso8859-2$" . iso-8859-2) ("iso8859-3$" . iso-8859-3) ("iso8859-4$" . iso-8859-4) ("iso8859-5$" . iso-8859-5) ("iso8859-6$" . iso-8859-6) ("iso8859-7$" . iso-8859-7) ("iso8859-8$" . iso-8859-8) ("iso8859-9$" . iso-8859-9) ("iso8859-10$" . iso-8859-10) ("iso8859-11$" . iso-8859-11) ("iso8859-13$" . iso-8859-13) ("iso8859-14$" . iso-8859-14) ("iso8859-15$" . iso-8859-15) ("iso8859-16$" . iso-8859-16) ("ascii-0$" . ascii) ("gb2312.1980" . chinese-gb2312) ("gbk" . chinese-gbk) ("gb18030" unicode) ("jisx0208.1978" . japanese-jisx0208-1978) ("jisx0208" . japanese-jisx0208) ("jisx0201" . jisx0201) ("jisx0212" . japanese-jisx0212) ("ksx1001" . korean-ksc5601) ("ksc5601.1987" . korean-ksc5601) ("cns11643.1992.*1" . chinese-cns11643-1) ("cns11643.1992.*2" . chinese-cns11643-2) ("cns11643.1992.*3" . chinese-cns11643-3) ("cns11643.1992.*4" . chinese-cns11643-4) ("cns11643.1992.*5" . chinese-cns11643-5) ("cns11643.1992.*6" . chinese-cns11643-6) ("cns11643.1992.*7" . chinese-cns11643-7) ("cns11643.92p1-0" . chinese-cns11643-1) ("cns11643.92p2-0" . chinese-cns11643-2) ("cns11643.92p3-0" . chinese-cns11643-3) ("cns11643.92p4-0" . chinese-cns11643-4) ("cns11643.92p5-0" . chinese-cns11643-5) ("cns11643.92p6-0" . chinese-cns11643-6) ("cns11643.92p7-0" . chinese-cns11643-7) ("big5" . big5) ("viscii" . viscii) ("tis620" . tis620-2533) ("microsoft-cp1251" . windows-1251) ("koi8-r" . koi8-r) ("jisx0213.2000-1" . japanese-jisx0213-1) ("jisx0213.2000-2" . japanese-jisx0213-2) ("jisx0213.2004-1" . japanese-jisx0213\.2004-1) ("iso10646-1$" unicode-bmp) ("iso10646.indian-1" unicode-bmp) ("unicode-bmp" unicode-bmp) ("abobe-symbol" . symbol) ("sisheng_cwnn" . chinese-sisheng) ("mulearabic-0" . arabic-digit) ("mulearabic-1" . arabic-1-column) ("mulearabic-2" . arabic-2-column) ("muleipa" . ipa) ("ethiopic-unicode" unicode-bmp . ethiopic) ("is13194-devanagari" . indian-is13194) ("Devanagari-CDAC" . devanagari-cdac) ("Sanskrit-CDAC" . sanskrit-cdac) ("Bengali-CDAC" . bengali-cdac) ("Assamese-CDAC" . assamese-cdac) ("Punjabi-CDAC" . punjabi-cdac) ("Gujarati-CDAC" . gujarati-cdac) ("Oriya-CDAC" . oriya-cdac) ("Tamil-CDAC" . tamil-cdac) ("Telugu-CDAC" . telugu-cdac) ("Kannada-CDAC" . kannada-cdac) ("Malayalam-CDAC" . malayalam-cdac) ("Devanagari-Akruti" . devanagari-akruti) ("Bengali-Akruti" . bengali-akruti) ("Punjabi-Akruti" . punjabi-akruti) ("Gujarati-Akruti" . gujarati-akruti) ("Oriya-Akruti" . oriya-akruti) ("Tamil-Akruti" . tamil-akruti) ("Telugu-Akruti" . telugu-akruti) ("Kannada-Akruti" . kannada-akruti) ("Malayalam-Akruti" . malayalam-akruti) ("muleindian-2" . indian-2-column) ("muleindian-1" . indian-1-column) ("mulelao-1" . mule-lao) ("muletibetan-2" . tibetan) ("muletibetan-0" . tibetan) ("muletibetan-1" . tibetan-1-column)) font-encoding-alist) ) (defun my--set-font (&optional frame) (with-selected-frame (or frame (selected-frame)) (if (string-equal system-type "windows-nt") ;; Windows (progn (set-face-attribute 'default nil :font "consolas") (dolist (charset '(han cjk-misc chinese-gbk)) (set-fontset-font "fontset-default" charset (font-spec :family "Microsoft Jhenghei"))) (set-fontset-font "fontset-default" 'kana '("Meiryo" . "iso10646-1")) (set-fontset-font "fontset-default" 'hangul '("Malgun Gothic" . "iso10646-1")) (set-fontset-font "fontset-default" 'arabic '("Adobe Naskh Medium" . "iso10646-1")) (set-fontset-font "fontset-default" 'cyrillic '("Consolas" . "iso10646-1")) (set-fontset-font "fontset-default" 'gujarati '("Nirmala UI" . "iso10646-1")) (set-fontset-font "fontset-default" 'devanagari '("Adobe Devanagari" . "iso10646-1")) (set-fontset-font "fontset-default" 'kannada '("Nirmala UI" . "iso10646-1")) (set-fontset-font "fontset-default" 'malayalam '("Nirmala UI" . "iso10646-1")) (set-fontset-font "fontset-default" 'oriya '("Nirmala UI" . "iso10646-1")) (set-fontset-font "fontset-default" 'sinhala '("Nirmala UI" . "iso10646-1")) (set-fontset-font "fontset-default" 'tamil '("Nirmala UI" . "iso10646-1")) (set-fontset-font "fontset-default" 'telugu '("Nirmala UI" . "iso10646-1")) (set-fontset-font "fontset-default" 'tibetan '("Microsoft Himalaya" . "iso10646-1")) (set-fontset-font "fontset-default" 'burmese '("Myanmar Text" . "iso10646-1")) (setq use-default-font-for-symbols nil) (set-fontset-font "fontset-default" 'unicode "Segoe UI Symbol" nil 'append) (set-fontset-font "fontset-default" '(#x1F600 . #x1F64F) "Segoe UI Symbol") ; Emoji (set-fontset-font "fontset-default" '(#xE000 . #xF8FF) "STIX")) ; Private Use Areas ;; Linux (set-face-attribute 'default nil :font "Inconsolata 14") (dolist (charset '(kana han cjk-misc bopomofo)) (set-fontset-font "fontset-default" charset (font-spec :name "Hiragino Sans GB"))))) (set-fontset-font "fontset-default" 'egyptian '("Noto Sans Egyptian Hieroglyphs" . "iso10646-1")) (set-fontset-font "fontset-default" 'javanese '("Javanese Text" . "iso10646-1")) ) (my--set-font) (add-hook 'after-make-frame-functions 'my--set-font) (setq inhibit-compacting-font-caches t) ;; font size (set-face-attribute 'default nil :height 120) > You mean, customizing the fontset didn't help with HELLO? Is it > possible that you customized the fontset for scripts other than those > which slow down HELLO? As you can see, some fontset settings were taken from your previous post. I only modified the font name to adjust my machine, other parts is my own. I believe this setup covers all the characters range in the HELLO file? > Thanks.