bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/24754] New: FontMetrics handling of newlines broken


From: roman at kennke dot org
Subject: [Bug awt/24754] New: FontMetrics handling of newlines broken
Date: 9 Nov 2005 09:34:39 -0000

The handling of newlines is broken. It should be treated as a character with
zero width. What the GTK peer do instead is return the maximum width of the
lines in the string. Run the attached testcase and you get the following with
the JDK:

address@hidden:~/src/test$ java TestRightAlignment
width of 'abcde': 36
width of 'abcde\nfghij': 61
width of 'abcdefghij': 61


The GTK peers return the following instead:

width of 'abcde': 39
width of 'abcde\nfghij': 39
width of 'abcdefghij': 65

I don't know what the Qt peers do here.


-- 
           Summary: FontMetrics handling of newlines broken
           Product: classpath
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: roman at kennke dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24754





reply via email to

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