[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] Patch: FontMetrics stringWidth fix
From: |
Lillian Angel |
Subject: |
[cp-patches] Patch: FontMetrics stringWidth fix |
Date: |
Fri, 18 Nov 2005 16:06:41 -0500 |
This fixes the stringWidth bug where the wrong width is returned for a
string containing new lines.
2005-11-17 Lillian Angel <address@hidden>
Fixes PR classpath/PR24754
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_getTextMetrics): Fixed
width for the case where there is more than one line in the
layout's text. Otherwise, the width of the layout would be
returned, which is the max width of all the lines in the
text. A loop was added to get the extent of all the lines and
add them together.
patch.diff
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] Patch: FontMetrics stringWidth fix,
Lillian Angel <=