unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Stephen Eilert <spedrosa@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Why Emacs should have a good web-browser
Date: Wed, 22 Jul 2009 14:07:24 -0400	[thread overview]
Message-ID: <878wig382r.fsf@stupidchicken.com> (raw)
In-Reply-To: <485b0c380907221040g12b6a5d5lbf3d2a866e8eb421@mail.gmail.com> (Stephen Eilert's message of "Wed, 22 Jul 2009 14:40:37 -0300")

Stephen Eilert <spedrosa@gmail.com> writes:

> On Tue, Jul 21, 2009 at 8:05 PM, Chong Yidong<cyd@stupidchicken.com> wrote:
>> Stephen Eilert <spedrosa@gmail.com> writes:
>>
>>> Or a way to create vector and bitmap images programatically (some
>>> Cairo-like elisp library, or bindings for Cairo itself).
>>
>> Emacs 23 can already do this, because it can be compiled with librsvg.
>>
>
> And how do I call it from elisp? I couldn't figure out how.

Here's an example:

(setq my-svg-data
      "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><svg xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.0\" width=\"223.51666\" height=\"223.76907\" id=\"svg2\"><defs id=\"defs4\" /><g transform=\"translate(-191.24778,-211.49836)\" id=\"layer1\"><path d=\"M 408.57145,369.50505 L 333.90781,368.26904 L 290.56166,429.07444 L 268.66485,357.68315 L 197.44078,335.24841 L 258.57144,292.36219 L 257.8987,217.69136 L 317.57633,262.5775 L 388.38462,238.86313 L 364.13677,309.49051 L 408.57145,369.50505 z\" id=\"path2399\" style=\"opacity:1;fill:#ff0a0a;fill-opacity:0.264574;stroke:#000000;stroke-width:12.38599968;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1\" /></g></svg>")

(setq my-svg-descriptor (create-image my-svg-data 'svg t))
(insert-image my-svg-descriptor)




  reply	other threads:[~2009-07-22 18:07 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 20:11 Why Emacs should have a good web-browser Fernando
2009-07-08 20:54 ` Chong Yidong
2009-07-08 21:55   ` joakim
2009-07-08 22:42     ` Lennart Borgman
2009-08-13 22:54       ` Daniel Colascione
2009-07-08 22:55     ` Chong Yidong
2009-07-08 22:59       ` Lennart Borgman
2009-07-08 23:05         ` Davis Herring
2009-07-09  0:05       ` joakim
2009-07-09 12:36       ` Jason Rumney
2009-07-09 14:25         ` joakim
2009-07-09 16:01           ` Chong Yidong
2009-07-09 17:39             ` joakim
2009-07-09 22:19       ` Richard Stallman
2009-07-08 20:58 ` Richard Riley
2009-07-09 21:12 ` Paul R
2009-07-11 20:24 ` Stefan Monnier
2009-07-12 11:01   ` Robert D. Crawford
2009-07-13  7:18   ` Ken Raeburn
2009-07-17 15:59   ` Paul R
2009-07-18  1:29     ` Miles Bader
2009-07-21  9:18       ` Paul R
2009-07-21 15:52         ` Stefan Monnier
2009-07-21 16:31           ` Miles Bader
2009-07-21 17:25             ` Thomas Lord
2009-07-22  9:23             ` Paul R
2009-07-21 16:52           ` David Reitter
2009-07-21 20:34             ` Chong Yidong
2009-07-21 17:13           ` Thomas Lord
2009-07-21 18:21             ` Adam Wołk
2009-07-21 19:01               ` Lennart Borgman
2009-07-21 19:26                 ` Adam Wołk
2009-07-21 19:33                   ` Lennart Borgman
2009-07-21 19:47                     ` Adam Wołk
2009-07-21 20:02                   ` Robert D. Crawford
2009-07-21 20:08                     ` Lennart Borgman
2009-07-21 20:37                       ` Robert D. Crawford
2009-07-21 20:24                     ` Adam Wołk
2009-07-21 21:27                       ` Robert D. Crawford
2009-07-21 21:36                         ` T.V. Raman
2009-07-21 22:14                           ` Robert D. Crawford
2009-07-21 21:48                         ` Adam Wołk
2009-07-21 22:24                           ` Robert D. Crawford
2009-07-22 10:33               ` Tassilo Horn
2009-07-22  9:12           ` Paul R
2009-07-22 14:47             ` Stefan Monnier
     [not found]       ` <fxezoucvx5x8i57cbqUYAxe124vaj_firegpg@mail.gmail.com>
2009-07-21 22:09         ` Stephen Eilert
2009-07-21 23:05           ` Chong Yidong
2009-07-22 17:40             ` Stephen Eilert
2009-07-22 18:07               ` Chong Yidong [this message]
2009-08-30 18:22   ` joakim
2009-09-02  9:58     ` martin rudalics
2009-09-02 12:00       ` joakim
2009-09-12 19:03 ` Deniz Dogan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878wig382r.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=spedrosa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).