[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#37159: 26.1; svg images in eww
From: |
Tomasz Piotrowski |
Subject: |
bug#37159: 26.1; svg images in eww |
Date: |
Thu, 19 Sep 2019 10:20:56 +0200 |
User-agent: |
mu4e 1.3.1; emacs 27.0.50 |
>>> 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 "<svg xmlns:xlink=\"http://www.w3.org/1999/xlink\" "
;; "xmlns:xi=\"http://www.w3.org/2001/XInclude\" "
;; "style=\"color: "
;; (face-foreground 'default) ";\">"
;; "<xi:include href=\"data:image/svg+xml;base64,"
;; (base64-encode-string data t)
;; "\"></xi:include></svg>")
;; (buffer-string)))
then the equations (SVG images) are not overlapping with surrounding
text.
- bug#37159: 26.1; svg images in eww, (continued)
- bug#37159: 26.1; svg images in eww, Lars Ingebrigtsen, 2019/09/14
- bug#37159: 26.1; svg images in eww, Eli Zaretskii, 2019/09/14
- bug#37159: 26.1; svg images in eww, Alan Third, 2019/09/14
- bug#37159: 26.1; svg images in eww, Lars Ingebrigtsen, 2019/09/15
- bug#37159: 26.1; svg images in eww, Tomasz Piotrowski, 2019/09/16
- bug#37159: 26.1; svg images in eww, Lars Ingebrigtsen, 2019/09/16
- bug#37159: 26.1; svg images in eww, Tomasz Piotrowski, 2019/09/16
- bug#37159: 26.1; svg images in eww, Lars Ingebrigtsen, 2019/09/16
- bug#37159: 26.1; svg images in eww, Tomasz Piotrowski, 2019/09/18
- bug#37159: 26.1; svg images in eww, Lars Ingebrigtsen, 2019/09/18
- bug#37159: 26.1; svg images in eww,
Tomasz Piotrowski <=
- bug#37159: 26.1; svg images in eww, Alan Third, 2019/09/19
- bug#37159: 26.1; svg images in eww, Lars Ingebrigtsen, 2019/09/19
- bug#37159: 26.1; svg images in eww, Alan Third, 2019/09/20
- bug#37159: 26.1; svg images in eww, Tomasz Piotrowski, 2019/09/20
- bug#37159: 26.1; svg images in eww, Lars Ingebrigtsen, 2019/09/20
- bug#37159: 26.1; svg images in eww, Tomasz Piotrowski, 2019/09/20
- bug#37159: 26.1; svg images in eww, Eli Zaretskii, 2019/09/20
- bug#37159: 26.1; svg images in eww, Tomasz Piotrowski, 2019/09/20
- bug#37159: 26.1; svg images in eww, Eli Zaretskii, 2019/09/21
- bug#37159: 26.1; svg images in eww, Tomasz Piotrowski, 2019/09/21