W3C home > Mailing lists > Public > www-svg@w3.org > March 2003

svg style with font embedded applied to svg:text in xhtml

From: Lorenzo De Tomasi <detomasi.liste@libero.it>
Date: Mon, 24 Mar 2003 10:36:53 +0100
Message-ID: <BAA49045.3EC9%detomasi.liste@libero.it>
I would like to insert some editable svg:text with a specific font in an
xhtml document.
What I would like is:
1. to set an external svg style one time that specifies color and font and
that can be linked to the xhtml;

for example:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
external style "h" file:
                            font: Info-Office (embed font)
                            font color: orange
                            font size: 18px
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

2. apply it to some text in different points of the xhtml;

for example:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
xhtml file:

<html>
<head>
    <svg>
        <link to style "h"/>
    </svg>
</head>

<body>
    <section>
        <h alt="Iscriviti">
            <svg>
                <svg:text with style "h" applied>Iscriviti</svg:text>
            </svg>
        </h>
        <p>...</p>
    </section>
    <section>
        <h alt="Login">
            <svg>
                <svg:text with style "h" applied>Login</svg:text>
            </svg>
        </h>
        <p>...</p>
    </section>
</body>

</html>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I need this to work in existing legacy browsers (better if Netscape 7 or
Mozilla for Mac) but I'm also interested in discussing (and perhaps
implementing) how it should be done in the future, starting a new topic and
contributing to it.

How can I? Can you explain it to me with a practical example?
Thank you very much.

PS: I attach an svg file with an example of what I want to obtain in the <h>
tag in the example. The font is embedded in the file 


h.svg
(image/svg attachment: 02-h.svg)

Received on Monday, 24 March 2003 04:38:28 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:24 GMT