If I were to edit the SVG on the fly with my rasterizing code. How would I put the style tag into the SVGDoc? Here is the code that I have:
Element mergeNode1 = SVGDoc.createElementNS(svgNS, "style"); mergeNode1.setNodeValue("<![CDATA[\n "+ " @font-face {\n"+ " font-family: 'Times';\n"+ " src: url('times.ttf');\n"+ " } ]]>"); //create MergeDef and append its children Element mergeDef = SVGDoc.createElementNS(svgNS, "defs"); mergeDef.appendChild(mergeNode1); root.appendChild(mergeDef); Am I doing this right? Thanks, Dave On Mon, 17 Jan 2005 09:38:15 -0500, Thomas DeWeese <[EMAIL PROTECTED]> wrote: > Hi Dave, > > Dave Austin wrote: > > > font-family: "Times Roman"; > > I would change this to a name w/o a space to get things started. > 'Foo' has always worked well for me ;) > > > src: url("C:\batik\times.ttf"); > > So first off I thought your problems were on a linux Dist what > are you doing using C:? Second I would take Tonny's advice and > move the ttf to the same directory as the svg file and use a relative > path: > src: url(times.ttf) > > This should work! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]