Re: font object order

> Hi. Newbie here.

Hi Steve,


> I checked the docs, but couldn't find mention of it. When embedding font objects into an svg document, do they all have to be defined at the top of the file before any actual graphical drawing type objects? Or can they be interspersed throughout the document, such as being added right before a text object that uses a particular font for the first time?

I don't think the specification mentions that they all need to be
defined at the top of the file, although it's a general good practice
to declare objects to be referenced later in a "defs" section,
typically placed near start of the document, something the
specification font examples [1] follow.

Note that the specification [1] states that "An SVG font can be either
embedded within the same document that uses the font or saved as part
of an external resource." although, in my experience, several
implementations that support SVG fonts don't support externally
referenced ones (most notably WebKit, though AFAIK this is being
changed as we speak). :-)


> Thanks!
>
> Steve

For future questions that mostly involve questions and/or support, the
Yahoo! SVG Developers group is probably a better place to ask: "This
mailing list is for technical discussion on Scalable Vector Graphics
(SVG) and its specifications." [3]. ;-)

Hope this helps,
 Helder


[1] http://www.w3.org/TR/SVG/fonts.html
[2] http://tech.groups.yahoo.com/group/svg-developers/
[3] http://lists.w3.org/Archives/Public/www-svg/

Received on Sunday, 4 March 2012 23:02:29 UTC