You'll have to be more specific. You can draw text in all sorts of ways. For
example, the Graphics.DrawString method has several overloads that take a
StringFormat instance as a parameter. The StringFormat class is used to
tweak the formatting of the string being drawn. The TextRenderer.DrawText
method has several overloads that take a TxtFormatFlags parameter that
allows tweaking of the text being drawn.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
I recycle.
I send everything back to the planet it came from.
> Hi all!
>
[quoted text clipped - 8 lines]
> Best regards,
> A. Dzizenko.
Andrey Dzizenko - 21 Jun 2006 11:34 GMT
Both DrawString and DrawText don't take as a parameter char width or char
spacing. Ain't I right?
> You'll have to be more specific. You can draw text in all sorts of ways.
> For
[quoted text clipped - 3 lines]
> method has several overloads that take a TxtFormatFlags parameter that
> allows tweaking of the text being drawn.
Kevin Spencer - 21 Jun 2006 16:35 GMT
No need to ask:
http://msdn2.microsoft.com/en-us/system.drawing.stringformat.aspx
http://msdn2.microsoft.com/en-us/library/system.windows.forms.textformatflags.aspx

Signature
HTH,
Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist
I recycle.
I send everything back to the planet it came from.
> Both DrawString and DrawText don't take as a parameter char width or char
> spacing. Ain't I right?
[quoted text clipped - 6 lines]
>> method has several overloads that take a TxtFormatFlags parameter that
>> allows tweaking of the text being drawn.
> Is there any method to draw text (using Graphics) that looks like in MS
> Word? It has another parameters like spacing or char width.
>
> There's an idea that it's caused by differences of GDI and GDI+. But what
> to do with it?
I've found this interesting:
http://wesnerm.blogs.com/net_undocumented/2006/06/text_mess_in_ne.html
-- Barry

Signature
http://barrkel.blogspot.com/
Andrey Dzizenko - 21 Jun 2006 14:09 GMT
Hmm...
Text measures became identical. But a font became... bold or something.
But it was really interesting, thank you!
>> Is there any method to draw text (using Graphics) that looks like in MS
>> Word? It has another parameters like spacing or char width.
[quoted text clipped - 8 lines]
>
> -- Barry