classpath-patches
[Top][All Lists]
Advanced

[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.

Attachment: patch.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]