I get the following error intermittenly in some drawing code (more
details below):

java.lang.IllegalArgumentException: Font
        at sun.awt.font.NativeFontWrapper.drawStringShortDiscreteRaster(Native
Method)
        at
sun.java2d.loops.SCRDrawStringRasterContext.invoke(TextRendering.java:1576)
        at
sun.awt.image.BufferedImageGraphics2D.drawString(BufferedImageGraphics2D.java:1119)
        at sun.java2d.pipe.ValidatePipe.drawString(ValidatePipe.java:124)
        at sun.java2d.SunGraphics2D.drawString(SunGraphics2D.java:2206)
        at
uchicago.src.sim.gui.SimGraphics.drawStringInHollowCircle(SimGraphics.java:219)
        ...

As you can see from the last line above, the code that causes this to
occur draws a hollow circle with a String in the center. To insure that
the String does not overflow the circle, I clip the graphics2D to
roughly the size of the circle.

I'm not sure what to make of the error, and thus how to go about fixing
it.

thanks,

Nick
--

Nick Collier
[EMAIL PROTECTED]
Social Science Research Computing
University of Chicago
Chicago, IL 60637

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to