bugDotGNU Portable.NET - Bugs: bug #11386, Graphics.DrawString doesn't break...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11386: Graphics.DrawString doesn't break strings at dashes

Submitted by:  Marc Haisenko <darkdust>
Submitted on:  Thu 23 Dec 2004 04:56:08 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 28 Dec 2004 01:44:08 AM UTC, comment #1:

Fixed in CVS 28.Dec.

For the record, the only documented wrap chars are currently ' ', '\n', and '\r'.

As an added observation, the MS implementation will not draw '\t' in a provided string but will still break on that non-drawn char.

Deryk Robosson <drobosson>
Project Member
Thu 23 Dec 2004 04:56:08 PM UTC, original submission:

Graphics.DrawString only breaks lines at whitespace but doesn't break lines at dashes (-). The attached ZIP file contains a small project and compiled EXE that demonstrates this when you resize the form. There's a PNG showing the .NET rendering and two PNGs showing dotGNU's rendering on X Window with Xft.

The problem is missing support for breaking at dashes in the TextLayoutManager class in System.Drawing/Graphics.cs... maybe we should add an array with characters that may break a line (e.g. ' ', '\t', '-').

Marc Haisenko <darkdust>
Project Member

 

Attached Files
file #2256:  TestStringBreaking.zip added by darkdust (65KiB - application/x-zip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 28 Dec 2004 01:44:08 AM UTCdrobossonStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Thu 23 Dec 2004 04:56:08 PM UTCdarkdustAttached File-=>Added TestStringBreaking.zip, #1995

Back to the top


Powered by Savane 3.1-cleanup1