From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#54564: 29.0.50; [PATCH] Use gsettings font rendering entries for pgtk builds Date: Sat, 26 Mar 2022 12:36:24 +0300 Message-ID: <837d8hawdj.fsf@gnu.org> References: <165c1dab82dbf3233ed5f9f481a008eb724aff31.camel@teloden.nl> <87o81t5x9o.fsf@yahoo.com> <83fsn5b6cj.fsf@gnu.org> <8735j55js6.fsf@yahoo.com> <83czi9b5gh.fsf@gnu.org> <87v8w143h6.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28922"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 54564@debbugs.gnu.org, pieter.van.prooijen@teloden.nl To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 26 10:37:22 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 1nY2rK-0007Ly-29 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Mar 2022 10:37:22 +0100 Original-Received: from localhost ([::1]:46156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nY2rI-0003rF-K7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Mar 2022 05:37:20 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52128) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY2r1-0003qy-C9 for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2022 05:37:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59182) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nY2r1-0002ev-3a for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2022 05:37:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nY2r1-0005la-04 for bug-gnu-emacs@gnu.org; Sat, 26 Mar 2022 05:37: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: Sat, 26 Mar 2022 09:37:02 +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.164828739522124 (code B ref 54564); Sat, 26 Mar 2022 09:37:02 +0000 Original-Received: (at 54564) by debbugs.gnu.org; 26 Mar 2022 09:36:35 +0000 Original-Received: from localhost ([127.0.0.1]:53078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nY2qY-0005kl-L0 for submit@debbugs.gnu.org; Sat, 26 Mar 2022 05:36:34 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nY2qX-0005ka-Jc for 54564@debbugs.gnu.org; Sat, 26 Mar 2022 05:36:33 -0400 Original-Received: from [2001:470:142:3::e] (port=53658 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY2qS-0002ZN-8x; Sat, 26 Mar 2022 05:36:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=4JLe696LQM8x+yCpNiK6OrcqNPkpG3DSy7/s6kmVKwc=; b=RiOj4Em70gwH hMjUGAj7TCD1q1rLa0Cp00wZJy3tKCTmrFivbP0bXN2HzDQRbmSw9Pu56Ge48nGPQRFqhD3yV8iYc PnOyPdfEBSPDuq2Z4vQhs3RrC5OuyFAjc830clWPKOD/2fB3ZKHXjTOj6+EAULEI4eWHcIpANKzuy IwGr0O3c1ony8MFHQqL85AkxfWWjiNQ/G5bJW7SPoqJpvsSSYIoyJ9hg8xcUBtY8z5ar8RH2ZjtBc +l0i0t0P/jIJwLE4bJ5U9BVhKmylC6b1oTq5FGocf9EhBTVg/0R5tWTuor9XZi368lwpNssF1sdPY +smHiyfHLZVlaV2r5t4BCA==; Original-Received: from [87.69.77.57] (port=2206 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nY2qR-0005d6-OS; Sat, 26 Mar 2022 05:36:28 -0400 In-Reply-To: <87v8w143h6.fsf@yahoo.com> (message from Po Lu on Sat, 26 Mar 2022 14:44:53 +0800) 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:228971 Archived-At: > From: Po Lu > Cc: pieter.van.prooijen@teloden.nl, 54564@debbugs.gnu.org > Date: Sat, 26 Mar 2022 14:44:53 +0800 > > 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?) Actually, I see that clear_face_cache doesn't force clearing of the font cache on every frame, only those frames which have "enough" fonts defined. So I guess an explicit call to clear_font_cache for every frame, followed by free_all_realized_faces, will be needed.