[cairo] Text output in SVG target

Behdad Esfahbod behdad at behdad.org
Mon Jan 7 13:07:50 PST 2008


On Mon, 2008-01-07 at 13:17 -0500, Hans-Jürgen Koch wrote:
> 
> Question: Is there really no way to embed simple text in an SVG file,
> or did I miss something? Just to be clear, I think of something like
> this:
> 
> <text x="100" y="150" font-family="Verdana" font-size="35">
> Hello world!
> </text>
> 
> If Cairo cannot produce such output at the moment,

No.

> would it be possible to add, or is it completely against some Cairo
> concepts?

Eventually I believe yes.  Not exactly in the form you said, because
cairo needs to embed and use the font too.  I'm not sure how widely SVG
fonts are supported though.  Our SVG hacker will respond with more
information I'm sure.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759



More information about the cairo mailing list