chunhaicao / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Embedded SVG fonts not working in Firefox #631

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Embed a full font description in <defs> section of <svg> file
2.Embed svg as object in html file
3.View under IE,Firefox,Chrome

What is the expected output? What do you see instead?

I created an SVG in inkscape for a webpage. And exported using "optimized SVG" 
to clean up the file. Downloaded the font "Architects Daughter" from Google Web 
Fonts. Converted the TTF to SVG and then copied the font specification in the 
defs section of my svg file. <text> sections were then styled to used the 
embedded font. Viewing under IE8 and Chrome 14.0.835.202 the font is displayed 
correctly. However in Firefox 7.0.1 the font defaults to system "cursive" as 
specified in my font-family list. Interestingly, if I force Flash rendering in 
the HTML, IE8 continues to display correctly whereas Chrome and Firefox BOTH 
default to system "serif" font.

What version of the product are you using? On what operating system,
browser, and version of Flash?

IE8 (Flash 10.0.42.34), Chrome 14.0.835.202 (Flash 11.0.1.152), Firefox 7.0.1 
(Flash 10.3.183.10), Windows 7 Professional SP1, SVGweb: Lurker Above. 

Please provide any additional information below. Reduced test cases are
always appreciated!

Original issue reported on code.google.com by hoyland...@gmail.com on 5 Oct 2011 at 10:00