X-Loop: help-debbugs@HIDDEN Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color Resent-From: Billy Lei <LeiYiXia29@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 16 Apr 2025 12:16:02 +0000 Resent-Message-ID: <handler.77841.B.174480574814902 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 77841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 77841 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.174480574814902 (code B ref -1); Wed, 16 Apr 2025 12:16:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Apr 2025 12:15:48 +0000 Received: from localhost ([127.0.0.1]:36351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u51gC-0003sG-47 for submit <at> debbugs.gnu.org; Wed, 16 Apr 2025 08:15:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48534) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <LeiYiXia29@HIDDEN>) id 1u51g9-0003rr-7D for submit <at> debbugs.gnu.org; Wed, 16 Apr 2025 08:15:46 -0400 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 <LeiYiXia29@HIDDEN>) id 1u51fb-0002GC-4Q for bug-gnu-emacs@HIDDEN; Wed, 16 Apr 2025 08:15:20 -0400 Received: from mail-australiasoutheastazolkn190100000.outbound.protection.outlook.com ([2a01:111:f403:d40e::] helo=MEUPR01CU001.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <LeiYiXia29@HIDDEN>) id 1u51fV-0002gg-1O for bug-gnu-emacs@HIDDEN; Wed, 16 Apr 2025 08:15:09 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JCl4dHetJRR1rR9KSiLoWo9CgqiYo+kwtYLWQdbXxxr2B716T5lMCj4JAR529jxnuLxCv5cFBZmC47T+4f4bK77e7AcwW9xEC0YH4BLq7NglXE7GxU8B+eb3nXJyawWcn0SI0QolQl45duASZSOPZ0qPo01A9TkW0L+aJpN9xYZk05zRVk9/5+3L21ncbMVvW4nnjeTtp1H0JFNhvd8hoGAhS7evIiulbQUDGKrJwRLpP12J8W9plkqVCf+xWFERgkykB4TEZn9+AzLew0Pm2n+k+PDHxD3yRrHQci8c3Ng60gZND3+xjlt9JHdJoq6hXDKP/WxtGa6xP0nShq7rbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4RZGfDVnNwCXL9Jy/sHpmtxQL+pAN194wpXA8ibr9Aw=; b=EWinWlEEH/ioKlZAIczgta9gsDE2p0oZfbnEICfMKJb1X/n7r8yLt7kMjgPYOsNfYhQ9ahM5lp7WTxLRxBnQjmQZA5TzooMe9DCZc6ReY3iK0ThDLobL/sPTq72ndGFAiEAFNYkk3ZpoNruiCf1y++Pzfn2gMBogWEcGPoZEANlrDT8WlLw6NcEVS46SVE37W27a69SNDTYZB3Sn0gRWO0uiJdzjfDP51lC8dq3n5GUKimaWcsEqj78t4d62Jod5CZdDHO5JPMPU8pUX19+wqXcOWMMpIXr9umovZ7H+C/T38/zvGAsjVgBhWJIkdAa1EmCh5pU1DgiM7AeBXktR4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4RZGfDVnNwCXL9Jy/sHpmtxQL+pAN194wpXA8ibr9Aw=; b=oStQxAfuiPtRBoIDyqb45jtzwPnUXEONZxWEyJHYVTdlp/GSY8LhM5TOBv8BouHeB5h0ps9GAgkq92n6kz+GXHhaX8q96dNftWPdANewzWG8j9Pgp2SXy3Kman4qGLOHaAqqfkytapm35JQxBHqnroYajYNQpNIK4lTcwRopHbFDvPT9aMoTXsIFyodNddGfFgx6gA5k4mqTXUNISvdZi9FMOsM5S9WWAyXAbPJfJULFGUZ2+16Gaczdz8IIWt+Bl+ey4f8AackRd4qWc5AJOzJDMF6sAIbPk4YMb6Wj1fwE6rBuaZ++kNyW+P5cVQluFiVvSeXG09mCjVBE6eFdbw== Received: from SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:28b::5) by MEUP300MB0256.AUSP300.PROD.OUTLOOK.COM (2603:10c6:220:216::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8632.34; Wed, 16 Apr 2025 12:09:55 +0000 Received: from SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM ([fe80::c7be:a528:cfce:c0e5]) by SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM ([fe80::c7be:a528:cfce:c0e5%5]) with mapi id 15.20.8632.035; Wed, 16 Apr 2025 12:09:49 +0000 Message-ID: <SY7P300MB0734287FC9582B87929FE366D7BD2@HIDDEN> Date: Wed, 16 Apr 2025 20:09:46 +0800 User-Agent: Mozilla Thunderbird References: <SY7P300MB07347CC88D7ABD94F72575EED7B32@HIDDEN> From: Billy Lei <LeiYiXia29@HIDDEN> In-Reply-To: <SY7P300MB07347CC88D7ABD94F72575EED7B32@HIDDEN> X-Forwarded-Message-Id: <SY7P300MB07347CC88D7ABD94F72575EED7B32@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: TY2PR06CA0036.apcprd06.prod.outlook.com (2603:1096:404:2e::24) To SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:28b::5) X-Microsoft-Original-Message-ID: <6cf861d5-e8dd-4e2b-b010-7441697bc19f@HIDDEN> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SY7P300MB0734:EE_|MEUP300MB0256:EE_ X-MS-Office365-Filtering-Correlation-Id: 2e9bf0e4-a434-4e06-8b8e-08dd7cdf95b9 X-Microsoft-Antispam: BCL:0; ARA:14566002|461199028|8060799006|6090799003|19110799003|5072599009|15080799006|7092599003|440099028|10035399004|3412199025|4302099013|26104999006|1602099012; X-Microsoft-Antispam-Message-Info: OP/FfqA25W+Zwo1qJFG6jujvJJ0EF4+2a42wJFxvCy16pd0AqvAl9DUJfCAUoD5cUyf8MQyLHSyVEJzSeHFYBgG7EEEGECoIBoNoC5NQTDBEmbUtGlSe9wdEyh017JWisFGAOsm5k6RTd2VVyUdGtrm/YMRpnFM18Thsug1moNF8u8A5iCODdyrJy/unBmaaXx4bt36KXNbRpRWbia87ikC9vyt/qFO4LFjwRGSeWpl7F3PhGzBYxkBrzLYgIkxq1xYsYKLi6czLvqtssTyocoLAbID+qodig3yqU6AMi3G9MEGEO2b3ycxnavl3cpaXTAPClaoM9nhuXCWoqSQGQX0zzuLlnsi4orupzLAUsT+xl60h2V4TA9olmmEPqAoQx7DZMclLBmY8MYktJJMIGap/cGZrD/XTaLgEglNW+xnuCoE9+Q86VEo3/nUYp9Q2ls2F04GZw5SWXrw9/v1x2UQykhrLhQ52YAlXqpEdoTBYmX2vxaGZXQtU9rArsYZOHJcrW/Xg+EqGI8nh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p1vsU67OWiO+Uaj9lewx27IFPcAZoR9YRdNRCkwX X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e9bf0e4-a434-4e06-8b8e-08dd7cdf95b9 X-MS-Exchange-CrossTenant-AuthSource: SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Apr 2025 12:09:49.1021 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MEUP300MB0256 Received-SPF: pass client-ip=2a01:111:f403:d40e::; envelope-from=LeiYiXia29@HIDDEN; helo=MEUPR01CU001.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I found this issue when debugging org LaTeX preview, see > When using themes with background color set to #000000, and org-preview-default-process is set to dvisvgm, the LaTeX fragments are displayed incorrectly. > > To reduplicate: > > 1. Switch to a theme [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (leiyixia29[at]outlook.com) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (leiyixia29[at]outlook.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: 0.2 (/) I found this issue when debugging org LaTeX preview, see https://list.orgmode.org/87cydchjqn.fsf@HIDDEN/T/#ed7ba8310f82e8be8a2e7360df1568ed485434df3 > When using themes with background color set to #000000, and org-preview-default-process is set to dvisvgm, the LaTeX fragments are displayed incorrectly. > > To reduplicate: > > 1. Switch to a theme with background color set to #000000 (like Modus Vivendi) > 2. Set org-preview-default-latex-process to dvisvgm > 3. Create an org-mode document. Write some LaTeX fragment and press C-c C-x C-l to preview LaTeX fragment. > 4. The LaTeX preview is displayed as a white rectangle. > > After debugging, I found that it is because dvisvgm omitts the default #000 color value when generating SVG file, and emacs has a unique way of displaying the SVG, which caused foreground color to be applied to it. > > A solution is to change org-format-latex-options to use transparent background by default. I've attached this fix. It turned out that emacs displays svg images differently compared to an image viewer. I can reduplicate this issue when I use emacs to view this svg image, which emacs replaces the image's black color with the current theme's foreground color: https://commons.wikimedia.org/wiki/File:Flag_of_the_German_Democratic_Republic.svg See also (Chinese): https://emacs-china.org/t/emacs-30-1-svg/29217
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Billy Lei <LeiYiXia29@HIDDEN> Subject: bug#77841: Acknowledgement (Some svg image's black color is replaced by emacs's theme foreground color) Message-ID: <handler.77841.B.174480574814902.ack <at> debbugs.gnu.org> References: <SY7P300MB0734287FC9582B87929FE366D7BD2@HIDDEN> X-Gnu-PR-Message: ack 77841 X-Gnu-PR-Package: emacs Reply-To: 77841 <at> debbugs.gnu.org Date: Wed, 16 Apr 2025 12:16:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 77841 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 77841: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D77841 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 16 Apr 2025 12:56:03 +0000 Resent-Message-ID: <handler.77841.B77841.174480812529852 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Billy Lei <LeiYiXia29@HIDDEN>, Alan Third <alan@HIDDEN> Cc: 77841 <at> debbugs.gnu.org Received: via spool by 77841-submit <at> debbugs.gnu.org id=B77841.174480812529852 (code B ref 77841); Wed, 16 Apr 2025 12:56:03 +0000 Received: (at 77841) by debbugs.gnu.org; 16 Apr 2025 12:55:25 +0000 Received: from localhost ([127.0.0.1]:36692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u52IW-0007lO-4Q for submit <at> debbugs.gnu.org; Wed, 16 Apr 2025 08:55:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48794) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u52IS-0007kL-Q4 for 77841 <at> debbugs.gnu.org; Wed, 16 Apr 2025 08:55:22 -0400 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 <eliz@HIDDEN>) id 1u52IM-0003Uo-2m; Wed, 16 Apr 2025 08:55:14 -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=qQlrKkqzF3nnY3gniHNIujigIi67yq+hkdTcndDZcNQ=; b=Pp1vj3UdhtVZ 0gRAJWLnTYdP2L8MbJx/daB2nHvKWKCSjdT8allguWuYx5h8TA1QezYJC68vWO8sEXF2RxDzGIqzR gAsg7Cfmz1O0Dv4DAzAlqNVq4M+1mkaSb72mx838nvOcxU1vTCrkl62scUwMi9sIvPfxU1PvhH25W RSS51rCUdgrHtaea0Z2TPaSzGA9SwC6PkeSeUKphLjd34n0/LPJDufcX4RGRm442k8k2j4wC9ZqTX b/Nw/FdrvUW/sqyPQRdCWPeGCGKxnYwFutWQbYQExo80kAHDVcuy8UvCLswO/HwipWVc73HWN/sbi 0wR6b4+r+rr018QY8o1YRQ==; Date: Wed, 16 Apr 2025 15:55:08 +0300 Message-Id: <86a58gfeqb.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <SY7P300MB0734287FC9582B87929FE366D7BD2@HIDDEN> (message from Billy Lei on Wed, 16 Apr 2025 20:09:46 +0800) References: <SY7P300MB07347CC88D7ABD94F72575EED7B32@HIDDEN> <SY7P300MB0734287FC9582B87929FE366D7BD2@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > Date: Wed, 16 Apr 2025 20:09:46 +0800 > From: Billy Lei <LeiYiXia29@HIDDEN> > > I found this issue when debugging org LaTeX preview, see > https://list.orgmode.org/87cydchjqn.fsf@HIDDEN/T/#ed7ba8310f82e8be8a2e7360df1568ed485434df3 > > > When using themes with background color set to #000000, and org-preview-default-process is set to dvisvgm, the LaTeX fragments are displayed incorrectly. > > > > To reduplicate: > > > > 1. Switch to a theme with background color set to #000000 (like Modus Vivendi) > > 2. Set org-preview-default-latex-process to dvisvgm > > 3. Create an org-mode document. Write some LaTeX fragment and press C-c C-x C-l to preview LaTeX fragment. > > 4. The LaTeX preview is displayed as a white rectangle. > > > > After debugging, I found that it is because dvisvgm omitts the default #000 color value when generating SVG file, and emacs has a unique way of displaying the SVG, which caused foreground color to be applied to it. > > > > A solution is to change org-format-latex-options to use transparent background by default. I've attached this fix. > > It turned out that emacs displays svg images differently compared to an > image viewer. I can reduplicate this issue when I use emacs to view this > svg image, which emacs replaces the image's black color with the current > theme's foreground color: > > https://commons.wikimedia.org/wiki/File:Flag_of_the_German_Democratic_Republic.svg > > See also (Chinese): https://emacs-china.org/t/emacs-30-1-svg/29217 Yes, this is a feature. I think to disable it, you need to include a :background setting in the image spec. Alan, am I right?
X-Loop: help-debbugs@HIDDEN Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color Resent-From: Alan Third <alan@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Wed, 16 Apr 2025 16:23:06 +0000 Resent-Message-ID: <handler.77841.B77841.174482058326814 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 77841 <at> debbugs.gnu.org, Billy Lei <LeiYiXia29@HIDDEN> Received: via spool by 77841-submit <at> debbugs.gnu.org id=B77841.174482058326814 (code B ref 77841); Wed, 16 Apr 2025 16:23:06 +0000 Received: (at 77841) by debbugs.gnu.org; 16 Apr 2025 16:23:03 +0000 Received: from localhost ([127.0.0.1]:40790 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u55XN-0006xz-Br for submit <at> debbugs.gnu.org; Wed, 16 Apr 2025 12:23:01 -0400 Received: from dane.soverin.net ([185.233.34.25]:35517) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <alan@HIDDEN>) id 1u55XF-0006w4-Ge for 77841 <at> debbugs.gnu.org; Wed, 16 Apr 2025 12:22:53 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4Zd5sZ3MFlzygp; Wed, 16 Apr 2025 16:22:42 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4Zd5sZ09wzzPn; Wed, 16 Apr 2025 16:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1744820562; bh=W+6IQJaukNEWj3oRqUyyQ6LhSIt5H0BZDdK+2vdS8C8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b8lGZGAfRnif/Tz1JD5jU4Bb6MFVqCO7lk21ja7Fqai+31H/b5FSs99h8HzDodRmO nAOC2mLGqbwHuZPu6w8VFGU0xo3tSTdkfRF+GvJtyCv341vN6hZvsMRwsmprhfnmWq SjHC3lz1MWjqbO/T550Lb3XY16PAPjyAt/i45pqbRxW3cWligC82MZyie724avxiqb XnweFpelAUyk2vBZsVhLabP9lcsnr7pjka6epISfAJkfGDn+YTsydKFtdp975aeZIe rQf86+h6u6wB3SiojpkvzC6sYBiF1vud1I1hrlslqPedIpRR6dPAHok2WO++woIAbX jUt70korwAMBg== X-CM-Envelope: MS4xfDVnATtr9WQbhEV8uYoIeGm+R0snnqje3ID6YL+ZayH/kUtSyBDA/0mG7gHLbhl1Plbmde6RZjpw0DPg6YGrxhcwBUBesyjCCUxVvbhN0wd+U3iEtbLT In34ehh1Z/rO+CA10zludjreWfravnfs0Er38j6pvw9/C5oAWNZFZtgA4YoxLE2fWryFS7u8DnSt1Y0OxpSKbYm723cvDV8qUA+peeh+7F6srC42+x7A7GCp jbcO7iIam5M22qFh+MduksgOctz4YRlZMBUa9+36XqI= X-CM-Analysis: v=2.4 cv=UsCZN/wB c=1 sm=1 tr=0 ts=67ffd952 a=UbsBXRcqaZ6D9kgPt/Dvnw==:617 a=xqWC_Br6kY4A:10 a=kj9zAlcOel0A:10 a=XR8D0OoHHMoA:10 a=NjIK7znJAAAA:8 a=pGLkceISAAAA:8 a=3GbmggnxAAAA:8 a=fQzo7n-KAAAA:8 a=UqCG9HQmAAAA:8 a=f-fwhE4t8UmNLI6bOb0A:9 a=CjuIK1q_8ugA:10 a=O1c1nmEkCxIQdeELtU9r:22 a=f5SRDymMBvdfSkcBiS2K:22 a=9MSFP0l5Dcwi9NrB_JPx:22 Received: from localhost (faroe.holly.idiocy.org [local]) by faroe.holly.idiocy.org (OpenSMTPD) with ESMTPA id 8f7179e6; Wed, 16 Apr 2025 16:22:41 +0000 (UTC) Date: Wed, 16 Apr 2025 17:22:41 +0100 From: Alan Third <alan@HIDDEN> Message-ID: <Z__ZUSdXGDRHvqBi@HIDDEN> Mail-Followup-To: Alan Third <alan@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, Billy Lei <LeiYiXia29@HIDDEN>, 77841 <at> debbugs.gnu.org References: <SY7P300MB07347CC88D7ABD94F72575EED7B32@HIDDEN> <SY7P300MB0734287FC9582B87929FE366D7BD2@HIDDEN> <86a58gfeqb.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <86a58gfeqb.fsf@HIDDEN> X-Spampanel-Class: ham X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) On Wed, Apr 16, 2025 at 03:55:08PM +0300, Eli Zaretskii wrote: > > Date: Wed, 16 Apr 2025 20:09:46 +0800 > > From: Billy Lei <LeiYiXia29@HIDDEN> > > > > I found this issue when debugging org LaTeX preview, see > > https://list.orgmode.org/87cydchjqn.fsf@HIDDEN/T/#ed7ba8310f82e8be8a2e7360df1568ed485434df3 > > > > > When using themes with background color set to #000000, and org-preview-default-process is set to dvisvgm, the LaTeX fragments are displayed incorrectly. > > > > > > To reduplicate: > > > > > > 1. Switch to a theme with background color set to #000000 (like Modus Vivendi) > > > 2. Set org-preview-default-latex-process to dvisvgm > > > 3. Create an org-mode document. Write some LaTeX fragment and press C-c C-x C-l to preview LaTeX fragment. > > > 4. The LaTeX preview is displayed as a white rectangle. > > > > > > After debugging, I found that it is because dvisvgm omitts the default #000 color value when generating SVG file, and emacs has a unique way of displaying the SVG, which caused foreground color to be applied to it. > > > > > > A solution is to change org-format-latex-options to use transparent background by default. I've attached this fix. > > > > It turned out that emacs displays svg images differently compared to an > > image viewer. I can reduplicate this issue when I use emacs to view this > > svg image, which emacs replaces the image's black color with the current > > theme's foreground color: > > > > https://commons.wikimedia.org/wiki/File:Flag_of_the_German_Democratic_Republic.svg > > > > See also (Chinese): https://emacs-china.org/t/emacs-30-1-svg/29217 > > Yes, this is a feature. I think to disable it, you need to include a > :background setting in the image spec. Alan, am I right? Yes, but in this particular case :foreground, probably. This behaviour is documented in the elisp manual under "SVG Images" and is intended to make it easier to insert images into buffers so they look like native widgets and the like. We only set the default foreground and background colours, we don't override explicitly set colours. The easiest work-around for someone generating an SVG for display in Emacs is to just not set foreground and background colours at all, and then they'll both match the current theme (and also work correctly in web browsers). (IMHO if an SVG needs a specific colour, like the black in the German flag above, it should be setting the colour explicitly, rather than relying on the image viewer's default settings.) -- Alan Third
X-Loop: help-debbugs@HIDDEN Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color Resent-From: Lei Billy <LeiYiXia29@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 17 Apr 2025 10:18:01 +0000 Resent-Message-ID: <handler.77841.B77841.174488502428063 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Alan Third <alan@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, "77841 <at> debbugs.gnu.org" <77841 <at> debbugs.gnu.org> Received: via spool by 77841-submit <at> debbugs.gnu.org id=B77841.174488502428063 (code B ref 77841); Thu, 17 Apr 2025 10:18:01 +0000 Received: (at 77841) by debbugs.gnu.org; 17 Apr 2025 10:17:04 +0000 Received: from localhost ([127.0.0.1]:45890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5MIp-0007IS-18 for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 06:17:03 -0400 Received: from mail-australiaeastazolkn190120002.outbound.protection.outlook.com ([2a01:111:f403:d40d::2]:47571 helo=SY5PR01CU010.outbound.protection.outlook.com) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <LeiYiXia29@HIDDEN>) id 1u5MIl-0007GR-AD for 77841 <at> debbugs.gnu.org; Thu, 17 Apr 2025 06:17:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SYdJMk0FLHGem5LpqwsQdP7aizHkpdQ5gMOZzpaMvyoxbqwkr3w0Lsg7u6/adGE6TJgocc8MTCkQN+ndGBqAikxhJw7pSzfRbdKQ65as4gT83o+YYfhu5ZWqeG9It50OJEypeh+0i2hd4P0eSZ3Wzxh/BBMcHk69ctobhslT6BNrfnjvWFny3ZzjVtyRme9jJU0AzJH/904sU/OaX9/U4U+l6mYgKMVhBCoUiW003iJO/ivTJeyw4em80A7ZHA4KKyH0orxdtRNsMtTC2SSukL231y72tZsfuV+OxuwKaU6YP1Gy4mgJLzyXfGM/UcAXFCGsVHBYCfs7zqKnkbppPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nfsvjj+SsI+7YZpawekJ02/+lV/KoTijPM0dnre/1tA=; b=SRAKNI6XKqXJFDpSfxjrS4MZF7rAjx9vi3q6PR2KQSn4+GXkSYRVC8HmqgUDNC+xGZ/UWdzsApYZxraqa1wRCnJeHuvYU7V0tr0/Wiv/eJy6elVv9lwSOQNjeZIBBLVVUzd6JKVeOL3nhMj3xCyUeQ9cbOPeqBwch/Lo0mPFrYY6JugQVpb1GPNy7Vqc/BUbZ1H5MvhS78Cf5oceIBQ+R2KwyZ9GzxIrnGteVjbekrM2zQTSJphr64XgUNbDT5JC2Xjl7r5YzoC205kNZinIRXgqhj06M7NMeonmfqqT+EkGwvMtyZJ2shDHpawHMUxyEB3z7KKb42OMncqcWN2y5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nfsvjj+SsI+7YZpawekJ02/+lV/KoTijPM0dnre/1tA=; b=KrENb6zWG5rHPzlTcmlExzzWrfMTANU7SMd0cbJjRY56vZ8MF9y8Cm7wT9oVMrB2OOh98dzCb52o/bAGjA6jlOE+JUs7Gdu7QhOjEz57QTiBcEXuYXklzmqcmP9vYIOo+HG6JWIT1HVsMUFKiglJPR130T/5Fsp3f/4ddAX+j15BixXUityg7MP4VfGpSpgd7CNCg2VWQXUpr4z3NaXClY62jJal7ReidzZg7pZFq+G2opEvKW6gRmaEf+FLAv55jWax9Zzgt73ux5EsmUYiXA1eIJ3BE2TCFe7+F467telVO3EmkI4tVcmnRQ+twzA/G1HZP6wK92s14U9xbf/qug== Received: from SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:28b::5) by SY0P300MB0195.AUSP300.PROD.OUTLOOK.COM (2603:10c6:10:251::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8632.36; Thu, 17 Apr 2025 10:16:49 +0000 Received: from SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM ([fe80::c7be:a528:cfce:c0e5]) by SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM ([fe80::c7be:a528:cfce:c0e5%5]) with mapi id 15.20.8632.035; Thu, 17 Apr 2025 10:16:49 +0000 From: Lei Billy <LeiYiXia29@HIDDEN> Thread-Topic: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color Thread-Index: AQHbrshz7OISAbKcYk2YxpKvccOHNLOmQA7hgAA57oCAASwaEQ== Date: Thu, 17 Apr 2025 10:16:48 +0000 Message-ID: <SY7P300MB0734A76BD7776C34A561CDA7D7BC2@HIDDEN> References: <SY7P300MB07347CC88D7ABD94F72575EED7B32@HIDDEN> <SY7P300MB0734287FC9582B87929FE366D7BD2@HIDDEN> <86a58gfeqb.fsf@HIDDEN> <Z__ZUSdXGDRHvqBi@HIDDEN> In-Reply-To: <Z__ZUSdXGDRHvqBi@HIDDEN> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SY7P300MB0734:EE_|SY0P300MB0195:EE_ x-ms-office365-filtering-correlation-id: 66097b53-0851-40e1-e84d-08dd7d98f701 x-microsoft-antispam: BCL:0; ARA:14566002|15080799006|8062599003|461199028|19110799003|7092599003|8060799006|3412199025|440099028|102099032|26104999006; x-microsoft-antispam-message-info: p0FjS82a0noyM+cXpFh74FojGRUue+NR/YcLPObP0Q3Ygp9ekmie5b/AIw6kuQRJd7Oyztd4PymMOCanEoEEUYzyMnCNZmiBH5jFOTcT2UiXqc6Qkb3IsR+ZgyB3dz3bZol6eit0zBqy1jokkIRaESdBIhWHwZUINwCovXoutR1uOgzWVVdNlLvDYcgZ2+hzkNm1R3MUyKxHbTIOHb132I/3iXHZlK80yPkJ7STzGfPoMbtq27L1Lob41Nyu2TOQpGtUjD6MVHzhxM7U/0wvXvvct/GwmMi6ilbEw7ZpmLVCPu0s5f76/VK5CmQjvNumStYwg8C0rfOXJrA3HxDO7P2oTGVBWTpjzJeMANKx4+YoWIObd+GjCQEuvjV4+eKTXhIoLzz3XfnsWl2Wa8lVQ3IQwfKg5SNZOoANs3ULDIvmIu4rmBtMFr4mHDW4PLntvJnvAW6KMBZNLpmswqj+4H+ACU1ha3zmC+E/vrfcYgjrRHUp2eTEhYV17Fy+nYNsoasMC35DaPG0Bn8FU6mPp+seOSyF7Caxe64si8US/jZigpBPZbesdULBXaV8HLYarM8GV+u8xFGj4cLD6yog+b9fZ9gug9DTUtzkh8CzDefrrqQkS5mmQtWCADnsZhVr729lNBSKAq22gulTYldZGfDW3HtiBKJpTBOSEVn1K6+uq5J8D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/x1QuAtB7OnCeBd9U4Zcd1rvM+z9TiQDmogHaF2qb9Ttw5fnR8i+vJu5wYz94I0mTZOCYI95Ps4jfGjkRze+NZxVARO1E0rCv03Vbw5ymzMhxkNM6KNxKfxsjw6MeiF1uaC4asvo/tNrSFh6kQZBcKcfQuaJ1SrJC8a5Hv9CUXHBQrz/JTHt+KBCvOoKpPfZtveRnzZSHoTvVQLgmJMxRRZI+Tjgf1qMWaieHuqnsilCTNhiuoMLYxoASCsllclrWrCfRBqiIgaw3UGOArWGR0+wa1GUl1KRGFBsR5q/7WLmnkf58ED/6dYThym/owb0cCq1445L8bN4w2BxJdFLjGZDPftsJbi6lNJjMrjlFzPcs6ZOdrzmsHnIqab3BSJZfYyU6qa2HtcXheNTKlZ4RCfihzvxWa2IeGt1Y+tfWxSUJYhqpSAWlqGnOzJyHMPST1OVGLUIwS9bKvuk++Jc0jgjZT8lF1tB98Bg9y9v5TzwV8lw8VqbQFixakHfDmr7ImkiKVXsTqPNJeMExBx36qCjBMn8ldT5uOeJ6Mf4j5IwFGlgLCIw/CxQJfZ++269TJawpRUcFUSKGcUyPLYKYBn+FLFxAeoIHq6/GiTFDuxUN1Fhcx7p+1hKuw0Gqs/4TsAufn2ZOme2xrbDP1Uz1CuzhlVQ57c+nJEhuB/vNBuOj+HyAJ7Kn1h6dFS+xlc14c5l7gN2hbsst5k61vwVqC7BHEjnbq1Brz379XLJi8xLwivrOk18PhFfHhayh3AiCIlhUBLzA2Lf/M1k= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SY7P300MB0734.AUSP300.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 66097b53-0851-40e1-e84d-08dd7d98f701 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2025 10:16:48.8694 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SY0P300MB0195 X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -0.8 (/) RG9lcyBlbWFjcyBleGlzdHMgc29tZSBvcHRpb25zIHRoYXQgY2FuIGJlIGN1c3RvbWl6ZWQgdG8g bWFrZSBzdmcgaW1hZ2Ugc3BlYyB1c2UgYmxhY2sgYXMgdGhlIGZvcmVncm91bmQgY29sb3IgYnkg ZGVmYXVsdD8gSU1PIHVzZXJzIHNob3VsZCBiZSBhYmxlIHRvIGNoYW5nZSB0aGlzIGJlaGF2aW9y LCBzbyB0aGF0IGVtYWNzIGNhbiBiZSBjb21wYXRpYmxlIHdpdGggc3ZnIGltYWdlcyB0aGF0IGRv bid0IHNldCB0aGUgIzAwMDAwMCBjb2xvciBleHBsaWNpdGx5Lg0KDQrlj5Hoh6rmiJHnmoTigIZp UGFkDQoNCg==
X-Loop: help-debbugs@HIDDEN Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 17 Apr 2025 11:00:03 +0000 Resent-Message-ID: <handler.77841.B77841.174488757816072 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lei Billy <LeiYiXia29@HIDDEN> Cc: alan@HIDDEN, 77841 <at> debbugs.gnu.org Received: via spool by 77841-submit <at> debbugs.gnu.org id=B77841.174488757816072 (code B ref 77841); Thu, 17 Apr 2025 11:00:03 +0000 Received: (at 77841) by debbugs.gnu.org; 17 Apr 2025 10:59:38 +0000 Received: from localhost ([127.0.0.1]:45957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5My1-0004B4-F6 for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 06:59:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35180) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u5Mxw-00049n-2v for 77841 <at> debbugs.gnu.org; Thu, 17 Apr 2025 06:59:34 -0400 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 <eliz@HIDDEN>) id 1u5Mxo-0004d0-SO; Thu, 17 Apr 2025 06:59:24 -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=f9XxzLfcOWYolIsy6nPmqrDNsJ//GkKXc+WfuiuuRmA=; b=cO7YIuBJWd7F /ZkOQ/RMS/puhVYh8sIE9spmMWqlvomuONxyt58fIvoEIrXZ3hG/rkPSYWXjHkZjA063pzLUNkkK6 mB/LQUt86BX9uf9a5S5GxkWMjDNTSmnSAxn6zdOQ/+Oof1xYftH5i/PyYjJyJoGaWTCrZOgYGAbss VI7TrVbuO4Uav15RGMNBksSsA6JcdUleXdRWWxJwlgyp5Z8IjJghjnQmDkGtT65OOXIa901HCZcQ5 NznDxvp7Nu2RMx9OVuhDLGy96CvEVy/6FQArVK7QzI3ds2heFUzyRL8VEUkBgBmuTDM5kP5f5Db/T kk4uFFaF2RxCQxge9Qr+4Q==; Date: Thu, 17 Apr 2025 13:59:21 +0300 Message-Id: <86cydbdpfa.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <SY7P300MB0734A76BD7776C34A561CDA7D7BC2@HIDDEN> (message from Lei Billy on Thu, 17 Apr 2025 10:16:48 +0000) References: <SY7P300MB07347CC88D7ABD94F72575EED7B32@HIDDEN> <SY7P300MB0734287FC9582B87929FE366D7BD2@HIDDEN> <86a58gfeqb.fsf@HIDDEN> <Z__ZUSdXGDRHvqBi@HIDDEN> <SY7P300MB0734A76BD7776C34A561CDA7D7BC2@HIDDEN> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Lei Billy <LeiYiXia29@HIDDEN> > CC: Eli Zaretskii <eliz@HIDDEN>, "77841 <at> debbugs.gnu.org" > <77841 <at> debbugs.gnu.org> > Date: Thu, 17 Apr 2025 10:16:48 +0000 > > Does emacs exists some options that can be customized to make svg image spec use black as the foreground color by default? IMO users should be able to change this behavior, so that emacs can be compatible with svg images that don't set the #000000 color explicitly. I don't understand why you say this. Emacs behaves with SVG images as it does with text: the colors of the face override the default colors. IOW, it's a feature, not a bug. As Alan says, images that want to display specific colors should specify that in the image spec.
X-Loop: help-debbugs@HIDDEN Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color Resent-From: Manuel Giraud <manuel@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 17 Apr 2025 11:24:02 +0000 Resent-Message-ID: <handler.77841.B77841.174488903328090 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 77841 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lei Billy <LeiYiXia29@HIDDEN> Cc: Alan Third <alan@HIDDEN>, "77841 <at> debbugs.gnu.org" <77841 <at> debbugs.gnu.org>, Eli Zaretskii <eliz@HIDDEN> Received: via spool by 77841-submit <at> debbugs.gnu.org id=B77841.174488903328090 (code B ref 77841); Thu, 17 Apr 2025 11:24:02 +0000 Received: (at 77841) by debbugs.gnu.org; 17 Apr 2025 11:23:53 +0000 Received: from localhost ([127.0.0.1]:46015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1u5NLU-0007Iz-K1 for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 07:23:52 -0400 Received: from ledu-giraud.fr ([51.159.28.247]:36525) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <manuel@HIDDEN>) id 1u5NLQ-0007IJ-LN for 77841 <at> debbugs.gnu.org; Thu, 17 Apr 2025 07:23:50 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=Odns9EKh jKFe5mvvpRIzrVLG2tVizyezOC5CpB26Oaw=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=RXt1L/4vRUk1v2ymez9uomKPHBtLWX MYyUomZLqp2uNqot7/HuB5LsPlteW05iLUc/34XrRDZNhWesTuTVcyCQ== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=Odns9EKhjKFe5mvv pRIzrVLG2tVizyezOC5CpB26Oaw=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=amdQyZ1rRuHTH4c0VUaklGWLaurAlre0M2+LFb KusnKxBlaD/vorjtIy8oQNpU9yoCleLvOa+pbKHirGp4TD3kj7jixEjEiQj8guoVUDmkI3 U8Sw0y1sua75pm9zv6VPoEKX1RUv7iP/n68Ez6poHDee3g3jg1S983J7xQIK6jGp+4S41F +vuYlm/MVU+GLTvcy0AicH38fq1wm0FXKMM4yg2QZrfymdMqM0sLv8uJRZryysrZcfiOB/ PLzf5nuwSsi2ecCDvCmdp+D8SP86rrDsdDcDlKtxMpBezN6HbeYseWgRM3EMscs6/oDV1U +CiznYN/EXPgcfmh3DPKsj3Q== Received: from computer (<unknown> [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id fd089c4c (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 17 Apr 2025 13:23:45 +0200 (CEST) From: Manuel Giraud <manuel@HIDDEN> In-Reply-To: <SY7P300MB0734A76BD7776C34A561CDA7D7BC2@HIDDEN> References: <SY7P300MB07347CC88D7ABD94F72575EED7B32@HIDDEN> <SY7P300MB0734287FC9582B87929FE366D7BD2@HIDDEN> <86a58gfeqb.fsf@HIDDEN> <Z__ZUSdXGDRHvqBi@HIDDEN> <SY7P300MB0734A76BD7776C34A561CDA7D7BC2@HIDDEN> Date: Thu, 17 Apr 2025 13:23:44 +0200 Message-ID: <87v7r3f2v3.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Lei Billy <LeiYiXia29@HIDDEN> writes: > Does emacs exists some options that can be customized to make svg > image spec use black as the foreground color by default? IMO users > should be able to change this behavior, so that emacs can be > compatible with svg images that don't set the #000000 color > explicitly. I don't think there is an option for this but FWIW, DocView (when producing SVG) does exactly this with its own face (`doc-view-svg-face') that forces black on white by default. -- Manuel Giraud
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.