« first day  last day (15 days later) » 

TaW
TaW
01:28
But you don't change the font, right? So, if there is not enough text, how could it work? Not sure if supplying the maximum size is the same as supplying the width to find out the current height.
 
1 hour later…
02:36
The goal is to get the text that will fit the rectangle, with the given Font.
The font doesn't change
I want to split some text by a rectangle. A list of strings is returned, each string must fit the entirety of the rectangle.
 
4 hours later…
TaW
TaW
06:14
Well if everything is given the problem can't be solved. Your text is too short, unless you accept changing, say, the line distance (leading). To find out the number of lines you could use the MeasureString(String, Font, SizeF, StringFormat, Int32, Int32) overload of DrawString. Then find out the font Height..1
 
2 hours later…
08:36
Alright say we have like a string.

"Hello Red Fox, how do you do today?"

Now we have a rectangle that can only fit either "Hello Red Fox, how"
Or "do you do today?"

So basically I want to divide a string by a rectangle
TaW
TaW
08:50
So? Isn't that what you already do? But: With what do you want to fill the empty space at the bottom? You really should post an image of what you want to see!
Also: It may help to show the drawing code. Maybe all you really need is some additional space between the lines?
09:21
I'll do that tomorrow. Late here so gonna sleeperino x.x

« first day  last day (15 days later) »