]> git.eshelyaron.com Git - emacs.git/commit
Set CSS for SVG files
authorAlan Third <alan@idiocy.org>
Sun, 28 Mar 2021 16:52:57 +0000 (17:52 +0100)
committerAlan Third <alan@idiocy.org>
Sat, 3 Apr 2021 22:07:01 +0000 (23:07 +0100)
commit1fdbeffe3a65cb23abb43a4ea59df9553c9246f9
treee0bf007c9aa559aa184c05ee795e8abe6d787db7
parent40842f67afb2931de6789237a49570f99b70404f
Set CSS for SVG files

* src/dispextern.h (struct image): Add font details required for the CSS.
* src/image.c (free_image): Free the font family string.
(search_image_cache):
(uncache_image): Make image caching understand the font details.
(lookup_image): Handle the font details when generating the image and
looking up the cache.
(svg_css_length_to_pixels): Handle 'em' when we know the font size.
(svg_load_image): Generate the CSS and apply it to the SVG.
(enum svg_keyword_index):
(svg_format):
(syms_of_image): Add ':css' attribute.
* doc/lispref/display.texi (SVG Images): Add details of new svg image
attributes.
doc/lispref/display.texi
etc/NEWS
src/dispextern.h
src/image.c