Patch: pango font metrics
Thomas Fitzsimmons
fitzsim@redhat.com
Mon Dec 1 18:27:00 GMT 2003
Hello,
This patch updates GdkFontMetrics to use the Pango API where before it
used XLFDs. It is a temporary fix and doesn't produce precise metrics;
Graydon's GdkClasspathFontPeerMetrics patches will supersede this work
when the supporting Java2D code is activated.
OK to commit?
Tom
2003-12-01 Thomas Fitzsimmons <fitzsim@redhat.com>
* gnu/java/awt/peer/gtk/GdkFontMetrics.java (GdkFontMetrics):
Pass font name, not XLFD, to initState.
(stringWidth(String, int, String)): New method.
(stringWidth(String)): Call new stringWidth.
(getLeading): Always return 0.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontMetrics.c
(initState): New Pango implementation.
(stringWidth): Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fontmetrics2.patch
Type: text/x-patch
Size: 5034 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20031201/1a18e74f/attachment.bin>
More information about the Java-patches
mailing list