22 Nov
2011
22 Nov
'11
2:52 p.m.
On Tuesday, November 8, 2011, 4:27:13 AM, Jarek wrote:
JF> Here is how you can embed fonts in SVG documents: (replace <data> with JF> actuall base64-encoded font data):
JF> <style> JF> @font-face { JF> font-family: "Sample font"; JF> src: url("data:font/woff;charset=utf-8;base64,<data>"); JF> } JF> </style>
Note that the media type for woff is application/font-woff http://www.w3.org/TR/WOFF/#appendix-b
There is not currently a font/* top level type. It would be great if there were; and it may yet happen. But that is the current situation.
--
Chris Lilley Technical Director, Interaction Domain
W3C Graphics Activity Lead, Fonts Activity Lead
Co-Chair, W3C Hypertext CG
Member, CSS, WebFonts, SVG Working Groups