JDOM and SVG fonts

  • Follow


I use a Java application based on JDOM which creates a SVG file with
embedded fonts. The application uses a small predefined SVG font
library (some files with SVG fonts). When the application generated a
new SVG it search the font library for the needed fonts and insert them
as needed into the new SVG. There are only glyphs added which really
occure in the new SVG. Following is a snippet from such a SVG font
file:

<glyph unicode=3D"&#xE041;" glyph-name=3D"A" horiz-adv-x=3D"750">
<path style=3D"fill-rule=3Devenodd; stroke:none" d=3D"M ... />
</glyph>

When I use getAttributeValue("unicode") on such a glyph element it
seems not to return the correct value. In case of the above I get
0xee8181.

In the resulting SVG there is
<glyph unicode=3D"=EE??" glyph-name=3D"A" horiz-adv-x=3D"750">
<path style=3D"fill-rule=3Devenodd; stroke:none" d=3D"M ... />
</glyph>

The code of this Java app is not from me so I don't know if anything is
missing.

__
Tom

0
Reply bauer (27) 6/17/2005 6:48:06 PM


0 Replies
20 Views

(page loaded in 0.031 seconds)


Reply: