GdkGraphics.java (drawString): Pass font name, not XLFD, to native drawString.

2003-08-22  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GdkGraphics.java (drawString): Pass font
	name, not XLFD, to native drawString.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c (drawString):
	Replace XLFD-based implementation with Pango-based
	implementation.

From-SVN: r70698
This commit is contained in:
Thomas Fitzsimmons 2003-08-22 20:33:50 +00:00 committed by Thomas Fitzsimmons
parent 376de22592
commit 50fe737a03
4 changed files with 33 additions and 13 deletions

View file

@ -215,8 +215,7 @@ public class GdkGraphics extends Graphics
native void drawString (String str, int x, int y, String fname, int size);
public void drawString (String str, int x, int y)
{
drawString (str, x, y,
((GtkFontPeer)font.getPeer ()).getXLFD (), font.getSize ());
drawString (str, x, y, font.getName(), font.getSize());
}
public void drawString (AttributedCharacterIterator ci, int x, int y)