From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40845: SVG rendering issues Date: Sat, 25 Apr 2020 18:30:39 +0300 Message-ID: <83o8rf7fc0.fsf@gnu.org> References: <72ebf5eb-6b00-ebb4-dab3-a047e35ae1ae@gmail.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="17129"; mail-complaints-to="usenet@ciao.gmane.io" Cc: cpitclaudel@gmail.com, 40845@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 25 17:31:24 2020 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 1jSMm2-0004OH-NX for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Apr 2020 17:31:22 +0200 Original-Received: from localhost ([::1]:38986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSMm1-0002Wf-Md for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Apr 2020 11:31:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50448) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSMll-0002WH-11 for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 11:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSMlj-0002xG-SF for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 11:31:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48682) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jSMli-0002ro-FS for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 11:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jSMli-0005cX-BL for bug-gnu-emacs@gnu.org; Sat, 25 Apr 2020 11:31:02 -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, 25 Apr 2020 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40845 X-GNU-PR-Package: emacs Original-Received: via spool by 40845-submit@debbugs.gnu.org id=B40845.158782866021597 (code B ref 40845); Sat, 25 Apr 2020 15:31:02 +0000 Original-Received: (at 40845) by debbugs.gnu.org; 25 Apr 2020 15:31:00 +0000 Original-Received: from localhost ([127.0.0.1]:60228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSMlg-0005cH-KK for submit@debbugs.gnu.org; Sat, 25 Apr 2020 11:31:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47442) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSMle-0005c4-Sq for 40845@debbugs.gnu.org; Sat, 25 Apr 2020 11:30:59 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56279) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSMlW-0002QG-JW; Sat, 25 Apr 2020 11:30:53 -0400 Original-Received: from [176.228.60.248] (port=4779 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSMlV-0002Kd-C5; Sat, 25 Apr 2020 11:30:50 -0400 In-Reply-To: (message from Pip Cet on Sat, 25 Apr 2020 14:34:11 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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:179009 Archived-At: > From: Pip Cet > Date: Sat, 25 Apr 2020 14:34:11 +0000 > Cc: 40845@debbugs.gnu.org > > 6. When the cursor is over an SVG image, it is displayed with a box > around it rather than with inverted video as characters are. > > I've played around a while ago in an attempt to fix these issues, and > be able to define "character-like" SVG glyphs. My approach was to add > a display spec of the form (gen FN), which calls FN with the current > face parameters as arguments whenever redisplaying the spec, then uses > the return value (an image spec) as the actual spec to be displayed. I don't think I understand why we need to call a function for this. This is about displaying an image with a specific background color, isn't it?