Bug 12565 - Embedding SVG tags like font-face causes error message and will be ignored
Summary: Embedding SVG tags like font-face causes error message and will be ignored
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: svg (show other bugs)
Version: 0.20.4
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
: 16430 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-12 09:25 UTC by Michael Maier
Modified: 2012-04-01 06:38 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Maier 2002-09-12 09:25:55 UTC
That means that the svg-tags 
   font-face, font-face-uri and font-face-src 
can't be used in embedding svg in the "fo:instream-foreign-object" tag.

Solution: In the method setupSVG of the SVGElementMapping class add the following 
lines:
...
   foObjs.put("text", SVGObj.maker("text"));
...
			foObjs.put("font-face", SVGObj.maker("font-face"));
   foObjs.put("font-face-uri", SVGObj.maker("font-face-uri"));
   foObjs.put("font-face-src", SVGObj.maker("font-face-src"));
...

After that you can use font-face and the other tags to change the fonts used by the svg 
object.
Comment 1 J.Pietschmann 2002-09-12 20:59:07 UTC
Patch comitted to maintenance branch.
Comment 2 J.Pietschmann 2003-01-26 20:34:20 UTC
*** Bug 16430 has been marked as a duplicate of this bug. ***
Comment 3 Glenn Adams 2012-04-01 06:38:29 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed