LambrechtsWouter / svgweb

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

Support fonts defined in external .svg resources #288

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

SVGWEB correctly displays SVG fonts embedded in the 'defs' element,
however it does not work for fonts defined in external .svg
resources. 

Sample code is below. 

<?xml version="1.0" standalone="yes"?>
<svg version="1.2" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">

<defs>
  <font-face font-family="jml-custom">
    <font-face-src>
      <font-face-uri xlink:href="font-embedded.svg#jml-custom"/>
    </font-face-src>
  </font-face>
</defs>

<g> 
  <text x="20" y="60" font-family="jml-custom" font-size="48">ABC</text> 
</g>

</svg>

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

I'm using svgweb-2009-09-09-Owlbear.zip, Firefox 3.5.3, IE 8.0 and Chrome 2.0. 

Flash version is 10,0,22,87

See attached files:

 (a) font-embedded.svg  - sample SVG with a custom font embedded in the
'defs' element
 (b) font-external.svg - sample SVG that attempts to load the font defined
in (a)
 (c) test HTML I use to call (a) and (b)

Regards,
Yegor

Original issue reported on code.google.com by yegor.ko...@gmail.com on 15 Sep 2009 at 11:40

GoogleCodeExporter commented 8 years ago

Original comment by yegor.ko...@gmail.com on 15 Sep 2009 at 11:42

Attachments:

GoogleCodeExporter commented 8 years ago
Issue 376 has been merged into this issue.

Original comment by grick23@gmail.com on 3 Nov 2009 at 6:43