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.help Subject: Re: Background color in SVG display Date: Thu, 23 Jun 2022 19:06:28 +0300 Message-ID: <83czeze54r.fsf@gnu.org> References: <82czeznamq.fsf@gmail.com> <834k0bg8ww.fsf@gnu.org> <828rpnmzv6.fsf@gmail.com> <83letnek0c.fsf@gnu.org> <82zgi3lgkw.fsf@gmail.com> <83fsjvedk6.fsf@gnu.org> <82v8srl722.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11509"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 23 18:10:45 2022 Return-path: Envelope-to: geh-help-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 1o4PPp-0002rb-7o for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 18:10:45 +0200 Original-Received: from localhost ([::1]:52076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4PPo-0003Px-48 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 23 Jun 2022 12:10:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4PLp-000871-1v for help-gnu-emacs@gnu.org; Thu, 23 Jun 2022 12:06:37 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45462) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4PLo-00071c-Nt for help-gnu-emacs@gnu.org; Thu, 23 Jun 2022 12:06:36 -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=f9AC8pCqmuIOE64NVrCuPGqYZH/qGcov2XSJRwlfm3c=; b=EPjE75DAd2EJ g8LspD0JeePFpDewVVqJdMcUi0TJiTpieoADufKuZA7A7NcHK5uwjb2JD19kuTvq0oXRnbOqmG1NR GvjiV6790sY5kckvzaBd8TR3yrKne6uIzGwBfzqsd4rpZUOSci8406ZibKBZHoHqWT3iHyy57ZxR+ 8dQOQPbmxQ9xOG10Zq6Sj2gH3fROxYpHFIepABRsMRvmbDUoWbOzDm4VSJ6td9oK2aNzOHsq+XLKD t9GXlNAv6bLiyaWnjSe7oYUSJ2pekBRzHWVg+bpag0UL6Tf9IB/kl8zsUVS1x+WerV8cm/fHXrFCJ X/eVvaWxqVr/REyzZ1DkKg==; Original-Received: from [87.69.77.57] (port=3827 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 1o4PLn-0002Zp-Ul for help-gnu-emacs@gnu.org; Thu, 23 Jun 2022 12:06:36 -0400 In-Reply-To: <82v8srl722.fsf@gmail.com> (message from Pascal Quesseveur on Thu, 23 Jun 2022 17:43:01 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138025 Archived-At: > From: Pascal Quesseveur > Date: Thu, 23 Jun 2022 17:43:01 +0200 > > >"EZ" == Eli Zaretskii writes: > > EZ> We did make changes in how SVG images are handled wrt their > EZ> background, so if you think the new behavior is a bug, feel free > EZ> to submit an Emacs bug report. (Your version of librsvg also > EZ> matters.) > > As I said I use windows version compiled from GNU. librsvg is > version 2.2. 2.2? Are you sure? That sounds very old. The latest stable version is 2.56, AFAIK. > I didn't say there was a bug. I was wondering if this was the > expected behavior and if there was a way to change this color. I think I cannot reproduce the problems you describe, but I'm not the expert on displaying SVG images. If you report a bug, it will be looked at by people who are experts. There's no need to worry about reporting a bug which eventually turns out not to be a bug. > I've read that the background color could be set with the font's > background color, but if that's the case, that clearly doesn't work > for me. AFAIU, in Emacs 28 and later you should be able to give a face text property to the part of the buffer that displays SVG image(s), and the background color of that face will be honored by the SVG display, provided that (a) your librsvg is recent enough, and (b) the SVG image itself doesn't specify a background color.