I do have a fairly good reason to try to import the font manually. I am trying to get some windows symbols to show up. They are showing up as ?'s even know the JVM can see the symbol.ttf file. I think if i directly reference this file, it may bypass the problem. please read my other post about this.,,
Thanks, dave On Mon, 17 Jan 2005 15:53:02 -0500, Thomas DeWeese <[EMAIL PROTECTED]> wrote: > Hi Dave, > > Wouldn't it be better to figure out how to get the JVM to > recognize the installed fonts? > > Dave Austin wrote: > > > 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"); > > I usually create a Text Node (doc.createTextNode) and append > that to the element, According to the DOM Level 2 specs this shouldn't > work! > > > mergeNode1.setNodeValue("<![CDATA[\n "+ > ^^^^^^^^^^^^ > You don't need (can't have) the CDATA decl. Just set pass the > string as the parameter to createTextNode. If you really want a > CDATA section you can call 'doc.createCDATASection(String)' instead > of createTextNode. > > > " @font-face {\n"+ > > " font-family: 'Times';\n"+ > > " src: url('times.ttf');\n"+ > > " } ]]>"); > ^^^^ Obviously don't do this if you don't do > the CDATA dec. > > > //create MergeDef and append its children > > This looks right off the top of my head. > > --------------------------------------------------------------------- > 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]