all groups > dotnet windows forms > august 2005 >
You're in the

dotnet windows forms

group:

Kerning changes - why?



Kerning changes - why? Axel Dahmen
8/31/2005 12:00:00 AM
dotnet windows forms: Hi,

in one of my Windows Forms I've got a label displaying URLs. When the URL
displayed becomes too long, the letters' kerning changes, i.e. the letter
spacing gets bigger.

Did I set some property wrong? Or what makes the letter spacing change?

TIA,
Axel Dahmen

Re: Kerning changes - why? Herfried K. Wagner [MVP]
8/31/2005 12:00:00 AM
"Axel Dahmen" <NO_SPAM@NoOneKnows.invalid> schrieb:
[quoted text, click to view]

Set the control's 'FlatStyle' property to 'System'. After doing that, GDI
will be used instead of GDI+ to render the text. The problem you describe
is typical for GDI+.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Re: Kerning changes - why? Axel Dahmen
9/1/2005 12:00:00 AM
Thanks Herfried!

I've changed the "FlatStyle" property as you said, but now the url is
wrapped completely if it is too long. With the "Default" setting I enjoyed
the advantage of having the url displayed as far as possible.

Do you know if this problem will persist in future versions of GDI+? Is it a
bug or is it a feature?

Or is it possible to get the more advanced word wrapping behaviour having
the "FlatStyle" property set to "System"?

TIA,
Best wishes,
Axel Dahmen



--------------------------
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> schrieb im Newsbeitrag
news:eIOaAHprFHA.460@TK2MSFTNGP15.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button