W3C home > Mailing lists > Public > www-svg@w3.org > November 2001

RE: styling text

From: Danny Ayers <danny666@virgilio.it>
Date: Fri, 9 Nov 2001 12:15:07 +0100
To: <AndrewWatt2001@aol.com>, <www-svg@w3.org>
Message-ID: <EBEPLGMHCDOJJJPCFHEFAENHEEAA.danny666@virgilio.it>
Thanks, just what I was after.I don't feel as stupid as I thought I would -
using CDATA doesn't seem anything like as obvious as e.g. <defs>. I must
remember to check SVG 1.1 to see if anything's changed.

BTW, Pro XML and Pro XSL (Wrox Press) are two of the most read books on my
shelf - highly recommended ;-)


Danny Ayers

Alternate email (2001) :

  -----Original Message-----
  From: www-svg-request@w3.org [mailto:www-svg-request@w3.org]On Behalf Of
  Sent: 09 November 2001 09:56
  To: www-svg@w3.org
  Subject: Re: styling text

  In a message dated 08.11.01 23:25:15 GMT Standard Time,
danny666@virgilio.it writes:

    What I'm trying to do is bound to be dead straightforward, but I can't
    the life of me see it in the spec.

    All I want to do is define e.g. h1 as having style="font-size:100", h2
    style="font-size:200" then call on these styles later (in the same doc),
    like css. Something like :

       h1  style="font-size:200"
       h2  style="font-size:20"


    <text style="url(#h1)">Big Headline</text>
    <text style="url(#h2)">Smaller Headline</text>

    defs? It doesn't look like it...
    directly as css tags? maybe...class...hmm...

    It's late at night & I'm off to bed now, but I'd appreciate someone
    me feel stupid in the morning.


  I hope this cheers Danny. :)

  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
  <svg width="" height="">

  <style type="text/css">
  <![CDATA[ .MyBigText{font-size:40}
  <text x="20" y="60" class="MyBigText">I AM BIG!</text>
  <text x="20" y="100" class="MyLittleText">And I am only tiny!
&lt;sniff/&gt; :) </text>


  Andrew Watt
Received on Friday, 9 November 2001 06:18:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:51 UTC