bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/29036] New: TEXT_LAYOUT_CACHE is preventing font update after


From: david dot gilbert at object-refinery dot com
Subject: [Bug swing/29036] New: TEXT_LAYOUT_CACHE is preventing font update after UI change
Date: 12 Sep 2006 15:48:56 -0000

The TEXT_LAYOUT_CACHE mechanism implemented for buttons/menu items is
preventing font changes that result from a change to the look and feel from
being visible.  The font itself is changed, but the cached TextLayout is not
updated so the appearance of the buttons/menu items is wrong.

One way to reproduce this is to run the SwingSet2 demo included in JDK1.5, and
change to a different theme (this triggers (*) the 'swing.boldMetal=false'
setting which should result in a non-bold font for most controls, but doesn't
because of the bug described above).

I'm not familiar enough with the caching mechanism to fix this...probably Roman
should take a look at it.

(*) There's another bug here - the 'swing.boldMetal=false' setting should be
honoured in the first display of the application, but doesn't get applied until
the first look and feel or theme change.  This can be dealt with separately
though.


-- 
           Summary: TEXT_LAYOUT_CACHE is preventing font update after UI
                    change
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: swing
        AssignedTo: roman at kennke dot org
        ReportedBy: david dot gilbert at object-refinery dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29036





reply via email to

[Prev in Thread] Current Thread [Next in Thread]