From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tomasz Piotrowski Newsgroups: gmane.emacs.bugs Subject: bug#37159: 26.1; svg images in eww Date: Thu, 19 Sep 2019 10:20:56 +0200 Message-ID: <875zloofx3.fsf@host-4-42.fizyka.umk.pl> References: <87r259hdhr.fsf@is.umk.pl> <83sgpphd06.fsf@gnu.org> <877e707cdh.fsf@gnus.org> <83v9ukfjum.fsf@gnu.org> <87sgpo4b80.fsf@gnus.org> <83r258fj6o.fsf@gnu.org> <87zhjv2iwn.fsf@gnus.org> <20190914085951.GA37515@breton.holly.idiocy.org> <87v9tv84m2.fsf@gnus.org> <87r24j6igj.fsf@gnus.org> <20190914155406.GA2686@breton.holly.idiocy.org> <87muf5ycrh.fsf@gnus.org> <87h85c8wax.fsf@potas.fizyka.umk.pl> <87ef0gv327.fsf@gnus.org> <87blvkmi0u.fsf@potas.fizyka.umk.pl> <87ef0gt7iu.fsf@gnus.org> <87woe6dqdn.fsf@host-4-22.fizyka.umk.pl> <87d0fxlnxo.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="81857"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: mu4e 1.3.1; emacs 27.0.50 Cc: Alan Third , 37159@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 19 10:22:51 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iAriF-000LC4-9G for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Sep 2019 10:22:51 +0200 Original-Received: from localhost ([::1]:40036 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iAriE-0007wD-6H for geb-bug-gnu-emacs@m.gmane.org; Thu, 19 Sep 2019 04:22:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33813) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iArhU-0007Fi-18 for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2019 04:22:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iArhS-0003B2-Ri for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2019 04:22:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46298) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iArhS-0003Aw-Hr for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2019 04:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iArhS-0002mx-Dc for bug-gnu-emacs@gnu.org; Thu, 19 Sep 2019 04:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tomasz Piotrowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Sep 2019 08:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37159 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 37159-submit@debbugs.gnu.org id=B37159.156888127710664 (code B ref 37159); Thu, 19 Sep 2019 08:22:02 +0000 Original-Received: (at 37159) by debbugs.gnu.org; 19 Sep 2019 08:21:17 +0000 Original-Received: from localhost ([127.0.0.1]:55119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iArgj-0002lw-C8 for submit@debbugs.gnu.org; Thu, 19 Sep 2019 04:21:17 -0400 Original-Received: from mail.fizyka.umk.pl ([158.75.5.252]:49820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iArgd-0002le-Ez for 37159@debbugs.gnu.org; Thu, 19 Sep 2019 04:21:16 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.fizyka.umk.pl (Postfix) with ESMTP id 6BD55A0911; Thu, 19 Sep 2019 10:21:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at fizyka.umk.pl Original-Received: from mail.fizyka.umk.pl ([127.0.0.1]) by localhost (mail.fizyka.umk.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CxtaWUmdrKwd; Thu, 19 Sep 2019 10:21:04 +0200 (CEST) Original-Received: from host-4-42.fizyka.umk.pl (host-4-42.fizyka.umk.pl [158.75.4.42]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.fizyka.umk.pl (Postfix) with ESMTPSA id 13DCEA08EB; Thu, 19 Sep 2019 10:21:04 +0200 (CEST) In-reply-to: <87d0fxlnxo.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:166705 Archived-At: >>> Looks like whatever library Emacs is using for the svgs are saying that >>> they're shorter than they should be: >>> >>> (image-size (create-image "/tmp/d.svg" nil nil :scale 1) t) >>> => (12 . 13) >> What would be a solution to this? > > I do not know. If the patch lines are commented out in shr.el: ;; SVG images often do not have a specified foreground/background ;; color, so wrap them in styles. ;; (when (eq content-type 'image/svg+xml) ;; (setq data (svg--wrap-svg data))) (list data content-type))) (defun svg--wrap-svg (data)) ;; "Add a default foreground colour to SVG images." ;; (with-temp-buffer ;; (insert "" ;; "") ;; (buffer-string))) then the equations (SVG images) are not overlapping with surrounding text.