Hello David,

"get font and request java.awt.FontMetrics.getStringBounds for some string"
is too loose description and it is impossible to reproduce your
problem without details - font name/filename, string, etc.

Could you try to prepare minimal testcase that can be used to
reproduce the problem?

Ideally it would be something without any swing code -
you may get your font from file, instantiate buffered image and
get graphics from it, get font metrics and request string bounds for your
string.
If problem is not reproducible with such scenario then try to identify what
in your code makes the difference. As soon as reason will be identified
we can try to find workaround/fix.

regards,

-igor

On Tue, 18 Nov 2003, Rosenstrauch, David wrote:

> Got the following stack trace:
>
> java.lang.InternalError: Could not invert devTX
>         at sun.awt.font.NativeFontWrapper.layoutGlyphVector(Native Method)
>         at
> sun.awt.font.StandardGlyphVector.performDefaultLayout(StandardGlyphVe
> ctor.java:338)
>         at
> sun.awt.font.StandardGlyphVector.initPositions(StandardGlyphVector.ja
> va:690)
>         at
> sun.awt.font.StandardGlyphVector.getLogicalBounds(StandardGlyphVector
> .java:475)
>         at java.awt.Font.getStringBounds(Font.java:1794)
>         at java.awt.Font.getStringBounds(Font.java:1707)
>         at java.awt.FontMetrics.getStringBounds(FontMetrics.java:464)
> ... my code here ...
>
>
> I found no(!) references about this in Google or Google groups.  Sun's forums
> had one other person who hit this, but no follow up messages.
>
>
>
> The problem is occurring during a call to FontMetrics.getStringBounds(String,
> Graphics) which is occuring during Component.paint(Graphics  g), and as a
> result of event handling on a JComboBox (ActionListener.actionPerformed).
>
> In terms of what I'm doing to the GUI when this occurs:  I'm changing the
> combo box, which is making an update to some internal data, and I'm intending
> to then repaint stuff.  But the error occurs even if I comment out repaint.
>
> Only other relevant bit is that everything is occurring in a modal JDialog.
> (i.e., the combo box is in the jdialog, I want the repaint to occur there
> too.)
>
>
> Anyone ever seen anything weird like this before or have any idea how to work
> around it?  I'm guessing that that method FontMetrics.getStringBounds(String,
> Graphics) is somehow the problem, but I have no idea how or why - or what I
> could use instead.
>
> Any suggestions appreciated!
>
> TIA!
>
> DR
>
>
>
> ==============================================================================
> This message is for the named person's use only. It may contain sensitive and
> private proprietary or legally privileged information. No confidentiality or
> privilege is waived or lost by any mistransmission. If you are not the
> intended recipient, please immediately delete it and all copies of it from
> your system, destroy any hard copies of it and notify the sender. You must
> not, directly or indirectly, use, disclose, distribute, print, or copy any
> part of this message if you are not the intended recipient. CREDIT SUISSE
> GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE
> ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the
> right to monitor all e-mail communications through its networks. Any views
> expressed in this message are those of the individual sender, except where the
> message states otherwise and the sender is authorized to state them to be the
> views of any such entity.
> Unless otherwise stated, any pricing information given in this message is
> indicative  only, is subject to change and does not constitute an offer to
> deal at any price quoted. Any reference to the terms of executed transactions
> should be treated as  preliminary only and subject to our formal written
> confirmation.
> ==============================================================================
>
> ===========================================================================
> 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".
>

===========================================================================
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