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#61974: 29.0.60; customize checkbox and radio widgets don't render on macOS Date: Sun, 05 Mar 2023 08:25:22 +0200 Message-ID: <831qm3af59.fsf@gnu.org> References: <10c87ff5-223f-9300-5ecd-46317fa98881@porkrind.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32590"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61974@debbugs.gnu.org To: David Caldwell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 05 07:26:21 2023 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 1pYhp5-0008Fz-SJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Mar 2023 07:26:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYhop-0000rH-Bg; Sun, 05 Mar 2023 01:26:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYhoo-0000r9-D7 for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 01:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYhon-0003KL-OA for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 01:26:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYhon-0003Jw-KF for bug-gnu-emacs@gnu.org; Sun, 05 Mar 2023 01:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Mar 2023 06:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61974 X-GNU-PR-Package: emacs Original-Received: via spool by 61974-submit@debbugs.gnu.org id=B61974.167799754112737 (code B ref 61974); Sun, 05 Mar 2023 06:26:01 +0000 Original-Received: (at 61974) by debbugs.gnu.org; 5 Mar 2023 06:25:41 +0000 Original-Received: from localhost ([127.0.0.1]:38249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYhoT-0003JN-2d for submit@debbugs.gnu.org; Sun, 05 Mar 2023 01:25:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYhoQ-0003JA-61 for 61974@debbugs.gnu.org; Sun, 05 Mar 2023 01:25:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYhoK-0003I8-Dy; Sun, 05 Mar 2023 01:25:32 -0500 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=0jb5xsELlEh6IGv1Bd7/IFRgALQpZYJ7wmNb8ffKo/o=; b=FE20W7giFiSj RUgs0JwKRdZaECPDQIKVJCOVTg6YulGnoJRCfkp/oP+w20Yml7Y98rtBdxg0Y+8R+h/HUVS9YiUS7 /sSFN2OnejNkUlTumq009dA028ClXfS41LJlDY+f6Ity998EvHiXnPYwYKEjKRVRgnMOudpZ1q2K6 cwFfCrv7FyBqxkdScNSQ2a3yVzJskWNOMeGDccOwVFI44ZbcHw1VXjWsZYMp08aSaqsna2avhUXxH hLuRveXodLHnRzv8l20fWqHNMNGhmGsb2pxS2fvJk6VSphulGhU/Lee1DHmJNx6kiJrK9rR7+KBDu WmGZkerMc/m+QW2FOCxNlw==; Original-Received: from [87.69.77.57] (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 1pYhoJ-0004tx-TN; Sun, 05 Mar 2023 01:25:32 -0500 In-Reply-To: <10c87ff5-223f-9300-5ecd-46317fa98881@porkrind.org> (message from David Caldwell on Sat, 4 Mar 2023 17:35:16 -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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257335 Archived-At: > Date: Sat, 4 Mar 2023 17:35:16 -0800 > From: David Caldwell > > Fails: > > (insert-image (find-image '((:file "checked.svg")))) > > Works: > > (insert-image (find-image '((:file "splash.svg")))) > > It appears to be because the checkbox and radio svgs in etc/images all > use height="1em" and the mac native renderer doesn't like that. > > It works with rsvg because the emacs code that interfaces with rsvg code > passes some extra styling info to it so that it can render that properly > (image.c:11226 in the emacs-29 branch for me today). > > Unfortunately the native renderer in nsimage.m doesn't do this. I spent > some time today trying to figure it out, but it appears that the cocoa > apis just don't have this feature, so it would have to be done some > other way. > > I can confirm this is the issue by opening "etc/images/checked.svg", > hitting "C-c C-c" to edit, changing the "1em" to "16" and "C-c C-c"ing > again to re-render it. It will appear with a non-percentage height. Does it work to use the checked.xpm image instead? If it does, perhaps we should switch the macOS build to using the XPM images (assuming the problem you report is common to all macOS builds, that is).