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:

[EMAIL PROTECTED]:~/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



_______________________________________________
Bug-classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-classpath

Reply via email to