[Mono-bugs] [Bug 482510] New: Graphics.MeasureCharacterRanges cannot cope with word wrapping

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 5 13:15:47 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=482510


           Summary: Graphics.MeasureCharacterRanges cannot cope with word
                    wrapping
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: stapostol at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Opera/9.64 (X11; Linux x86_64; U; el) Presto/2.1.1

Calling MeasureCharacterRanges with a non-empty layout rectangle returns bogus
results: all letters are compressed at (x, y) = (0, 0).

Reproducible: Always

Steps to Reproduce:
1. Call Graphics.MeasureCharacterRanges("Hello, World!", FontFamily.SansSerif,
new Rectangle(100, 100, 100, 100), StringFormat.GenericDefault)
Actual Results:  
The resulting regions are all on top of each other, at (x, y) = (0, 0).

Expected Results:  
The resulting regions should be wrapped in two lines, start at (x, y) = (100,
100).

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list