Here is the Exception I'm getting, I'm OK with these Exception, but
Batik always popup an Error Dialog and display these Exception, that's
really annoying sometime. Do you know a way to turn it off?


***** CSSEngine: exception
property.syntax.error:org.w3c.dom.DOMException: The "font-family"
property does not support integer values.

AttrValue:Courier 10 Pitch

Exception:org.w3c.dom.DOMException
org.w3c.dom.DOMException: The "font-family" property does not support
integer values.
        at 
org.apache.batik.css.engine.value.AbstractValueFactory.createInvalidLexicalUnitDOMException(Unknown
Source)
        at 
org.apache.batik.css.engine.value.css2.FontFamilyManager.createValue(Unknown
Source)
        at org.apache.batik.css.engine.CSSEngine$1.property(Unknown Source)
        at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(Unknown
Source)
        at org.apache.batik.css.engine.CSSEngine.invalidateProperties(Unknown
Source)
        at 
org.apache.batik.css.engine.CSSEngine.nonCSSPresentationalHintUpdated(Unknown
Source)
        at org.apache.batik.css.engine.CSSEngine.handleAttrModified(Unknown
Source)
        at 
org.apache.batik.css.engine.CSSEngine$CSSNavigableDocumentHandler.attrModified(Unknown
Source)
        at 
org.apache.batik.dom.svg.SVGOMDocument$DOMAttrModifiedListenerWrapper.handleEvent(Unknown
Source)
        at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown
Source)
        at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown
Source)
        at org.apache.batik.dom.events.EventSupport.dispatchEvent(Unknown
Source)
        at org.apache.batik.dom.AbstractNode.dispatchEvent(Unknown Source)
        at org.apache.batik.dom.AbstractElement.fireDOMAttrModifiedEvent(Unknown
Source)
        at 
org.apache.batik.dom.svg.AbstractElement.fireDOMAttrModifiedEvent(Unknown
Source)
        at org.apache.batik.dom.AbstractAttr.setNodeValue(Unknown Source)
        at org.apache.batik.dom.AbstractAttr.setValue(Unknown Source)
        at org.apache.batik.dom.AbstractElement.setAttributeNS(Unknown Source)
        at 
com.gulfstream.software.constable.graphics.SVGBasicElement.safelySetElementAttribute(SVGBasicElement.java:149)
        at 
com.gulfstream.software.constable.graphics.SVGBasicShape.updateProperty(SVGBasicShape.java:337)
        at 
com.gulfstream.software.constable.graphics.SVGPluginRectangle.updatePluginRectProperty(SVGPluginRectangle.java:458)
        at 
com.gulfstream.software.constable.graphics.SVGPluginRectangle.access$000(SVGPluginRectangle.java:32)
        at 
com.gulfstream.software.constable.graphics.SVGPluginRectangle$1.run(SVGPluginRectangle.java:448)
        at org.apache.batik.util.RunnableQueue.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)

***** CSSEngine: exception....

***** CSSEngine: exception
property.syntax.error:org.w3c.dom.DOMException: The "font-family"
property does not support integer values.

AttrValue:Courier 10 Pitch

Exception:org.w3c.dom.DOMException
org.w3c.dom.DOMException: The "font-family" property does not support
integer values.
        at 
org.apache.batik.css.engine.value.AbstractValueFactory.createInvalidLexicalUnitDOMException(Unknown
Source)
        at 
org.apache.batik.css.engine.value.css2.FontFamilyManager.createValue(Unknown
Source)
        at org.apache.batik.css.engine.CSSEngine$1.property(Unknown Source)
        at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(Unknown
Source)
        at org.apache.batik.css.engine.CSSEngine.invalidateProperties(Unknown
Source)
        at 
org.apache.batik.css.engine.CSSEngine.nonCSSPresentationalHintUpdated(Unknown
Source)
        at org.apache.batik.css.engine.CSSEngine.handleAttrModified(Unknown
Source)
        at 
org.apache.batik.css.engine.CSSEngine$CSSNavigableDocumentHandler.attrModified(Unknown
Source)
        at 
org.apache.batik.dom.svg.SVGOMDocument$DOMAttrModifiedListenerWrapper.handleEvent(Unknown
Source)
        at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown
Source)
        at org.apache.batik.dom.events.EventSupport.fireEventListeners(Unknown
Source)
        at org.apache.batik.dom.events.EventSupport.dispatchEvent(Unknown
Source)
        at org.apache.batik.dom.AbstractNode.dispatchEvent(Unknown Source)
        at org.apache.batik.dom.AbstractElement.fireDOMAttrModifiedEvent(Unknown
Source)
        at 
org.apache.batik.dom.svg.AbstractElement.fireDOMAttrModifiedEvent(Unknown
Source)
        at org.apache.batik.dom.AbstractAttr.setNodeValue(Unknown Source)
        at org.apache.batik.dom.AbstractAttr.setValue(Unknown Source)
        at org.apache.batik.dom.AbstractElement.setAttributeNS(Unknown Source)
        at 
com.gulfstream.software.constable.graphics.SVGBasicElement$4.run(SVGBasicElement.java:145)
        at org.apache.batik.util.RunnableQueue.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:619)

***** CSSEngine: exception....



On Jan 9, 2008 3:53 PM, Bishop, Michael W. CONTR J9C880
<[EMAIL PROTECTED]> wrote:
>
>
>
> What kind of errors are you getting?  I never got errors, I just got empty
> boxes rendered where the text should be.
>
> As for filtering out unusable fonts, search the list for fonts or something
> like that.  Someone (probably Thomas) described a way to test each font.
>
> Michael
>
>  ________________________________
>  From: Qian Li
> Sent: Wed 1/9/2008 6:35 AM
>
>
> To: [email protected]
> Subject: Re: How to list available SVG text font-family values?
>
>
>
> Hi, Michael,
> Yes, you are right. I think I need manually filter out the ones that
> are not supported.
>
> Do you know if there is a way to turn off the batik's runtime
> exception catcher, so that my
> try and catch statement can catch these exception and do something,
> rather than batik's
> default runtime exception catcher. Currently my try and catch
> statement never able to catch
> these org.w3c.dom.DOMException.
>
> Thank you very much.
> Qian
>
>
> On Jan 7, 2008 3:13 PM, Bishop, Michael W. CONTR J9C880
> <[EMAIL PROTECTED]> wrote:
> > That's the list of fonts available to the system, not renderable in
> > Batik. In my experience, not all of them render properly. I asked this
> > question months ago; the short answer is that there's no easy way to
> > tell which will render properly in Batik.
> >
> > Michael Bishop
> >
> >
> > > -----Original Message-----
> > > From: Qian Li [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, January 07, 2008 5:44 AM
> > > To: [email protected]
> > > Subject: Re: How to list available SVG text font-family values?
> > >
> > > Hi,
> > >
> > > I found the answer, just in case anyone need it later on.
> > >
> > > java.awt.GraphicsEnvironment env =
> > > java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment();
> > > String[] allFontFamilyNames = env.getAvailableFontFamilyNames();
> > >
> > > Thanks.
> > >
> > > Kind regards,
> > > Qian
> > >
> > >
> > > On 1/4/08, Qian Li <[EMAIL PROTECTED]> wrote:
> > > > Hello,
> > > >
> > > > Does anyone know how to list available SVG text font-family values?
> > > > Will be great if I can list all possible values in Java.
> > > > Thank you very much in advance.
> > > >
> > > > Kind regards,
> > > > Qian
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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]
> >
> >
>
> ---------------------------------------------------------------------
> 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]

Reply via email to