[gui][patch] some fixes to glyph vectors

graydon hoare graydon@redhat.com
Thu Feb 10 11:46:00 GMT 2005


hi,

this patch, which I've committed to the java-gui-20050128-branch, fixes 
some incorrect uses of glyph vectors, which resulted in small 
scrunched-up font rendering in certain contexts. it also completes the 
removal if GdkFontMetrics, which seems to have been missed with the last 
CVS commit I made.

-graydon

2005-02-08  Graydon Hoare  <graydon@redhat.com>

	* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java:
	(finalize): Call finish from here.
	(produce): Not from here.
	* Makefile.am (gtk_c_source_files):
	Remove jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c.
	* Makefile.in: Regenerate.
	* gnu/java/awt/peer/gtk/GdkGraphics2D.java
	(cairoSetFont):
	(cairoDrawGdkTextLayout):
	(cairoDrawString):
	(getPeerTextMetrics):
	(getPeerFontMetrics): Remove.
	(setFont): Don't call cairoSetFont.
	(cairoDrawGlyphVector): Accept font peer argument.
	(drawGlyphVector): Pass font peer to cairoDrawGlyphVector.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c	
	(ensure_metrics_cairo):
	(gnu_java_awt_peer_gtk_GdkGraphics2D_cairoSetFont):
	(gnu_java_awt_peer_gtk_GdkGraphics2D_cairoDrawString):
	(gnu_java_awt_peer_gtk_GdkGraphics2D_getPeerFontMetrics):
	(gnu_java_awt_peer_gtk_GdkGraphics2D_getPeerTextMetrics):
	(metrics_cairo):
	(metrics_surface): Remove.
	(gnu_java_awt_peer_gtk_GdkGraphics2D_cairoDrawGlyphVector):
	Pass and install font peer.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: java-gui-20050128-glyph-vector-corrections.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20050210/c7c69bfd/attachment.ksh>


More information about the Java-patches mailing list