diff options
| author | Lars Magne Ingebrigtsen | 2016-06-27 22:25:10 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2016-06-27 22:25:10 +0200 |
| commit | f7ea7aa11f6211b5142bbcfc41c580d75485ca56 (patch) | |
| tree | 465777c047077cf9a45b4e2220fd32e1de45f114 /doc | |
| parent | 54fe3b6ec0557941c5759523b36bfdec21003f77 (diff) | |
| download | emacs-f7ea7aa11f6211b5142bbcfc41c580d75485ca56.tar.gz emacs-f7ea7aa11f6211b5142bbcfc41c580d75485ca56.zip | |
New functions svg-text and svg-remove
* doc/lispref/display.texi (SVG Images): Document svg-remove.
* doc/lispref/display.texi (SVG Images): Document svg-text.
* lisp/svg.el (svg-remove): New function.
(svg-text): New function.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/display.texi | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 575cad89f83..b7a6b570eb0 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -5350,6 +5350,24 @@ that describe the outer circumference of the polygon. | |||
| 5350 | @end lisp | 5350 | @end lisp |
| 5351 | @end defun | 5351 | @end defun |
| 5352 | 5352 | ||
| 5353 | @defun svg-text svg text &rest args | ||
| 5354 | Add a text to @var{svg}. | ||
| 5355 | |||
| 5356 | @lisp | ||
| 5357 | (svg-text | ||
| 5358 | svg "This is a text" | ||
| 5359 | :font-size "40" | ||
| 5360 | :font-weight "bold" | ||
| 5361 | :stroke "black" | ||
| 5362 | :fill "white" | ||
| 5363 | :font-family "impact" | ||
| 5364 | :letter-spacing "4pt" | ||
| 5365 | :x 300 | ||
| 5366 | :y 400 | ||
| 5367 | :stroke-width 1) | ||
| 5368 | @end lisp | ||
| 5369 | @end defun | ||
| 5370 | |||
| 5353 | @defun svg-embed svg image image-type datap &rest args | 5371 | @defun svg-embed svg image image-type datap &rest args |
| 5354 | Add an embedded (raster) image to @var{svg}. If @var{datap} is | 5372 | Add an embedded (raster) image to @var{svg}. If @var{datap} is |
| 5355 | @code{nil}, @var{IMAGE} should be a file name; if not, it should be a | 5373 | @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 | |||
| 5363 | @end lisp | 5381 | @end lisp |
| 5364 | @end defun | 5382 | @end defun |
| 5365 | 5383 | ||
| 5384 | @defun svg-remove svg id | ||
| 5385 | Remove the element with identifier @code{id} from the @code{svg}. | ||
| 5386 | @end defun | ||
| 5387 | |||
| 5366 | Finally, the @code{svg-image} takes an SVG object as its parameter and | 5388 | Finally, the @code{svg-image} takes an SVG object as its parameter and |
| 5367 | returns an image object suitable for use in functions like | 5389 | returns an image object suitable for use in functions like |
| 5368 | @code{insert-image}. Here's a complete example that creates and | 5390 | @code{insert-image}. Here's a complete example that creates and |