X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/54fe3b6ec0557941c5759523b36bfdec21003f77..f7ea7aa11f6211b5142bbcfc41c580d75485ca56:/doc/lispref/display.texi diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 575cad89f8..b7a6b570eb 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi @@ -5350,6 +5350,24 @@ that describe the outer circumference of the polygon. @end lisp @end defun +@defun svg-text svg text &rest args +Add a text to @var{svg}. + +@lisp +(svg-text + svg "This is a text" + :font-size "40" + :font-weight "bold" + :stroke "black" + :fill "white" + :font-family "impact" + :letter-spacing "4pt" + :x 300 + :y 400 + :stroke-width 1) +@end lisp +@end defun + @defun svg-embed svg image image-type datap &rest args Add an embedded (raster) image to @var{svg}. If @var{datap} is @code{nil}, @var{IMAGE} should be a file name; if not, it should be a @@ -5363,6 +5381,10 @@ binary string containing the image data. @var{image-type} should be a @end lisp @end defun +@defun svg-remove svg id +Remove the element with identifier @code{id} from the @code{svg}. +@end defun + Finally, the @code{svg-image} takes an SVG object as its parameter and returns an image object suitable for use in functions like @code{insert-image}. Here's a complete example that creates and