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

Re: font object order

From: Helder Magalh„es <helder.magalhaes@gmail.com>
Date: Sun, 4 Mar 2012 23:01:31 +0000
Message-ID: <CAPODfC5KvY29jEWC4zh_3PjxitTLrbujrNY75v7hWj+gYdkTxQ@mail.gmail.com>
To: Steve Mills <armpitstudios@gmail.com>
Cc: www-svg@w3.org
> 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 GMT

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