Hi,
I noticed a little problem with the Graphics.MeasureString-Function:
I have a Textline, which contains Tabs. I use a StringFormat-Object, which
represents the TabStops. The DrawString-Method calculates the Tabs in the
text correctly. But MeasureString ignores them. I'm using the function as
following:
Dim w As Single = g.MeasureString(MyText, Me.Font, New PointF(x, y),
MyStringFormat).Width
x,y contains exactly the Drawing-Position of MyText (otherwise I would see
this in DrawString). And MyStringFormat stands for an GenericTypographic
-Object, which I'm using in the whole project for all Drawing-Operations.
It's extended with the Tabstopps.
Any suggestions?
Peter