diff options
author | Paul Fisher <rao@gnu.org> | 1999-10-20 05:39:59 +0000 |
---|---|---|
committer | Paul Fisher <rao@gnu.org> | 1999-10-20 05:39:59 +0000 |
commit | 757492bf4f24e867b7b236c93b685d3025d19884 (patch) | |
tree | 7eba97c1e41fb81094bce531e4febe0a56b53d46 /gnu/java/awt/peer/gtk/GdkFontMetrics.java | |
parent | 539ab96d4e624eace67e86dbcf3faa0f30576368 (diff) | |
download | classpath-757492bf4f24e867b7b236c93b685d3025d19884.tar.gz |
Make Swing go.
Diffstat (limited to 'gnu/java/awt/peer/gtk/GdkFontMetrics.java')
-rw-r--r-- | gnu/java/awt/peer/gtk/GdkFontMetrics.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/java/awt/peer/gtk/GdkFontMetrics.java b/gnu/java/awt/peer/gtk/GdkFontMetrics.java index 9abee8763..2ff74e363 100644 --- a/gnu/java/awt/peer/gtk/GdkFontMetrics.java +++ b/gnu/java/awt/peer/gtk/GdkFontMetrics.java @@ -33,13 +33,14 @@ public class GdkFontMetrics extends FontMetrics } /* - Sun's Motif implementation always returns 0 here, but + Sun's Motif implementation always returns 0 or 1 here (???), but going by the X11 man pages, it seems as though we should return font.ascent + font.descent. */ public int getLeading () { - return metrics[ASCENT] + metrics[DESCENT]; + return 1; +// return metrics[ASCENT] + metrics[DESCENT]; } public int getAscent () |