[cp-patches] FYI: Faster drawString.

Sven de Marothy sven at physto.se
Sun Jun 11 08:31:31 UTC 2006

All in all, this makes drawString() about 3 times as fast.

2006-06-11  Sven de Marothy  <sven at physto.se>

	* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
	(setupGlyphMetrics): New method. Add glyphmetrics caching.
	(getOutline): Operate on the shape directly.
	* gnu/java/awt/peer/gtk/GdkFontPeer.java
	(getGlyphMetrics,putGlyphMetrics): Add GlyphMetrics caching.
	* include/gnu_java_awt_peer_gtk_FreetypeGlyphVector.h
	(getGlyph renamed getGlyphs)
	* java/awt/geom/AffineTransform.java
	(getTranslateInstance): Set fields directly.
	* native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c
	(getGlyphs): Get all glyph codes at once.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawstring.patch
Type: text/x-patch
Size: 9660 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060611/49f52018/drawstring.bin

More information about the Classpath-patches mailing list