kerning functionality in .net?

Is it possible to achieve character kerning inside a richTextBox?

can we solve this using :

a)CHARFORMAT2?

We can save kerning data into the RichTextBox but they don't get rendered.

b) GDI/GDI+

we can override richTextBox_OnPaint method but it doesn't get called by default

so we have to put in the constructor the following command

this.SetStyle(ControlStyles.UserPaint,true);

c) .NET 3.0

There is kerning support for Open Type Fonts through .net 3.0 api

under System.Windows.Documents Typography.Kerning Property

d)...

Please add your comment

[1275 byte] By [ilatzis] at [2007-12-25]