From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#54564: 29.0.50; [PATCH] Use gsettings font rendering entries for pgtk builds Date: Sat, 26 Mar 2022 14:44:53 +0800 Message-ID: <87v8w143h6.fsf@yahoo.com> References: <165c1dab82dbf3233ed5f9f481a008eb724aff31.camel@teloden.nl> <87o81t5x9o.fsf@yahoo.com> <83fsn5b6cj.fsf@gnu.org> <8735j55js6.fsf@yahoo.com> <83czi9b5gh.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16309"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: 54564@debbugs.gnu.org, pieter.van.prooijen@teloden.nl To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 26 07:46:16 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nY0Bk-00049u-GG for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Mar 2022 07:46:16 +0100 Original-Received: from localhost ([::1]:45020 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY0Bj-0000DL-3e for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Mar 2022 02:46:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY0BV-0000D9-VE for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2022 02:46:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59052) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nY0BV-0005eb-NC for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2022 02:46:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nY0BV-0001Vx-K3 for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2022 02:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Mar 2022 06:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 54564-submit@debbugs.gnu.org id=B54564.16482771135759 (code B ref 54564); Sat, 26 Mar 2022 06:46:01 +0000 Original-Received: (at 54564) by debbugs.gnu.org; 26 Mar 2022 06:45:13 +0000 Original-Received: from localhost ([127.0.0.1]:52949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nY0Aj-0001Up-Et for submit@debbugs.gnu.org; Sat, 26 Mar 2022 02:45:13 -0400 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:38779) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nY0Ah-0001UW-Br for 54564@debbugs.gnu.org; Sat, 26 Mar 2022 02:45:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1648277105; bh=tZ3fCJkLVcxe/lTNxIeWwwQkALSkvs4ZifAT8vfXxxE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b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tW0emEngDdZuCGr0WfO4Xt8rF7eVQq.nL4MkJOYFuvxVG.v3P4W7IzYg53MhIfS.a ovbso6pN8wz1KWgqbSt9G8GHiDcahrOVoYNfOW1wCds204ewN5Z1QRSz0aLBclXe8mjrzloh8T8F R4UXuH2oPbQojKMJOJwEgTyZzIlZ.DqlS_QLxtXfIyxRL75iTd0U9twsaK.50l3Sri9_E_5YoXQg huDhlUSLrtLLZERTu6Ch7LDqBqUHrwItDn7EFfYLcoPKUMuAfBu1aZzoGc7aAINwQPDJ6aLx.Vhr awuK1ijdayHrshZ2MT2pKK5rdf6jWJ5kjNB05zADC5sK4TADOvAC4RWDqh4w5MxBuZhxnVSBAw79 YG8ACYFZpymYO1DVcqCtZhe71.jXG3nrfPNPxx_7_DVO2FBYL8Mh0kI1.gY0fQrNYinKdt9kUEDz qScni_FAOcpIqg2NgD9va7Cd9ufnKkohJXZFKREaKnPdM5w_hzPESjyBN5uWReQwfxZA71265Tfm Zav3Mul2pJYYbd2LxQBm6OFf2.y7ouNaP1fS3PzTaXxXo1RkrM1fc.l1uErxOJEm2IULR8s7in7Y ckPLUPujF_YkT8dzs6rRs_2gw.su77hUMo11WyK_wp X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sat, 26 Mar 2022 06:45:05 +0000 Original-Received: by kubenode510.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 8dc2a232d606a6068c2a3c20f29377ab; Sat, 26 Mar 2022 06:44:59 +0000 (UTC) In-Reply-To: <83czi9b5gh.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 26 Mar 2022 09:20:14 +0300") X-Mailer: WebService/1.1.19987 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:228967 Archived-At: Eli Zaretskii writes: > Does the below fit the bill? > > clear_face_cache (true); > > Or did you mean to do this only on a single frame (or on specific > selected frames)? Then looking inside clear_face_cache will tell you > how to do that. It should be done for each frame on every display, so clear_face_cache probably does fit the bill. (Though perhaps clear_font_cache on each window system frame by itself will be enough?) > And one more thing: care should be taken if this is done in response > to some async notification, because clearing all the faces will need a > thorough redisplay. Most probably all the affected frames need to be > marked as "garbaged". Thanks. Pieter, do you need any help in implementing the feature along those lines? > I don't see any references to that variable in the patch you are > discussing. And its name and doc string don't seem to give any clue > that it's relevant to this issue. Is this only for fixed-pitch fonts? No, this is supposed to work for all fonts. > Yes, I think so. Sure, thanks.