Font representation

  • Thread starter Thread starter Andrey Dzizenko
  • Start date Start date
A

Andrey Dzizenko

Hi all!

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?

Thank you in advance for any comments.

Best regards,
A. Dzizenko.
 
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.

--
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?
 
Hmm...

Text measures became identical. But a font became... bold or something.

But it was really interesting, thank you!
 
Back
Top