This may be more of a general SVG question, but what fonts does Batik/SVG support? I couldn't find a list in the SVG specification. This arose from a recent problem during a testing session. When I provide a user a list of fonts, I use the Java API to poll the system for available fonts and list those. Nonsensical fonts like Webdings and Wingdings appear. When these fonts are rendered in a JTextArea, they look like empty blank squares. When they're rendered to SVG, they look "normal", i.e., a default font, definitely not WebDings or Wingdings. I notice that some fonts are rendered into a "standard" name (see SansSerif) and some are put in apostrophes (see others). I guess I want to know how Batik maps fonts and maybe a find a way to get a list of fonts that Batik/SVG will render? I'm not interested in supplying and rendering external fonts, I just want a subset of system available plus Batik/SVG usable fonts. Here's an example of what I'm seeing: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg contentScriptType="text/ecmascript" zoomAndPan="magnify" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" id="SVGWB-42AC4764-A602-98C9-A6E5-C2244E1F1FF7" version="1.0" width="640" fill="none" preserveAspectRatio="xMidYMid meet" viewBox="0 0 640 480" height="480" xmlns="http://www.w3.org/2000/svg" xmlns:svgx="http://je.jfcom.mil/svgx"> <rect x="-1000%" y="-1000%" fill="white" width="3000%" id="SVGWB-4D17575E-AC15-FE42-8FC0-BF3A5D92A01E" height="3000%" svgx:type="background"/> <g svgx:name="default_layer" svgx:type="layer" id="SVGWB-A52B6589-D1CE-A7B0-2205-5B551476876A" style="display: block" pointer-events="none"> <text x="65" y="45" transform="matrix(1.0, 0.0, 0.0, 1.0, 0.0, 0.0)" fill-opacity="1" fill="black" style="font-family: sans-serif; font-weight: normal; font-style: normal; font-size: 24" id="SVGWB-ACE52DBD-9690-CE9A-9EB2-C8C524ED5D29" stroke="none" stroke-width="1" stroke-opacity="1" pointer-events="visible"> This is SansSerif. </text> <text x="67" y="105" transform="matrix(1.0, 0.0, 0.0, 1.0, 0.0, 0.0)" fill-opacity="1" fill="black" style="font-family: 'Tahoma'; font-weight: normal; font-style: normal; font-size: 24" id="SVGWB-155B3D4F-6CE9-74C2-E51E-2176C0A981FD" stroke="none" stroke-width="1" stroke-opacity="1" pointer-events="visible"> This is Tahoma. </text> <text x="66" y="159" transform="matrix(1.0, 0.0, 0.0, 1.0, 0.0, 0.0)" fill-opacity="1" fill="black" style="font-family: 'Wingdings'; font-weight: normal; font-style: normal; font-size: 24" id="SVGWB-195E1B09-AE08-B7F7-7F64-E4997847BF01" stroke="none" stroke-width="1" stroke-opacity="1" pointer-events="visible"> This is WingDings and shouldn't be legible. </text> </g> </svg> Michael Bishop
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
