GNU bug report logs - #77841
Some svg image's black color is replaced by emacs's theme foreground color

Previous Next

Package: emacs;

Reported by: Billy Lei <LeiYiXia29 <at> outlook.com>

Date: Wed, 16 Apr 2025 12:16:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Ihor Radchenko <yantar92 <at> posteo.net>
To: Alan Third <alan <at> idiocy.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 77841 <at> debbugs.gnu.org, Billy Lei <LeiYiXia29 <at> outlook.com>
Subject: bug#77841: Some svg image's black color is replaced by emacs's theme foreground color
Date: Sat, 19 Apr 2025 11:37:35 +0000
Alan Third <alan <at> idiocy.org> writes:

>> Consider the attached svg image.
>>  ...
>> Seemingly, background and foreground are inverted in the second case.
>> 
>> What am I missing?
>
> The image draws a rectangle in the current foreground colour, black in
> the first case and red in the second, and then fills the text with
> "#fff".
>
>     <g fill='#fff'>

This image was generated by dvisvgm.
It indeed explicitly draws a rectangle over the page, effectively
inverting background and foreground (Emacs has no reason to apply
background color to the rect object fill).
That's unfortunate, but explains the observed behavior.

Feel free to close this bug report.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>




This bug report was last modified 7 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.