W3C home > Mailing lists > Public > www-style@w3.org > April 2013

Re: Applying gradients to text

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sat, 13 Apr 2013 23:38:03 -0700
Message-ID: <CAAWBYDDG7AkDBoz7+3Vfh=rP4G9NAmJvkqGJb1y=h9YZPgPEbg@mail.gmail.com>
To: irfan mir <theirf@gmail.com>
Cc: Dirk Schulze <dschulze@adobe.com>, www-style list <www-style@w3.org>
On Sat, Apr 13, 2013 at 11:36 PM, irfan mir <theirf@gmail.com> wrote:
> Hmm, I didn't know that that was how most graphic libraries fill text.
> Now, that I think about it, it is how to fill text in SVG. Well, SVG creates
> the shape and then applies the fill on the inside to the outside.

No, it's not.  To fill text in SVG, you just use the 'fill' property
on a <text> element.  That determines the bounding box of the text,
sizes the image accordingly, and paints it into the text.

Received on Sunday, 14 April 2013 06:46:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:28 UTC