PATCH: XGraphicsConfiguration implement font metrics cache
Scott Gilbertson
scottg@mantatest.com
Fri Feb 14 22:29:00 GMT 2003
My earlier patch caught NullPointerException to detect a failure to find a
10646-1 font, whereupon it would re-try without specifying the character
set. That used to work because of a side-effect from some of my diagnostic
code. Really, it should have been catching XException, because that's what
gets thrown if XLoadQueryFont returns null.
The revised patch against the 3.3 branch is attached. It's just like the
old patch except that it now catches XException.
Index: libjava/ChangeLog
from Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XGraphicsConfiguration.java (FontMetricsCache) : New inner
class
(CACHE_SIZE_PER_DISPLAY) : New field
(fontMetricsCache) : New field
(getXFontMetrics) : Use fontMetricsCache to cache fonts. Prefer loading
ISO10646-1 fonts.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20030214_FontCache.patch
Type: application/octet-stream
Size: 7511 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20030214/ec507e25/attachment.obj>
More information about the Java-patches
mailing list