GetTextExtent?
-
I've just started doing a bit of stuff with text and I can't seem to find anologs for
GetTextExtentPoint32()
and the like in theGraphics
orFont
classes. Any hints where that stuff is? For example, I want to find the size of a string in a given font. Matt Gerrans -
I've just started doing a bit of stuff with text and I can't seem to find anologs for
GetTextExtentPoint32()
and the like in theGraphics
orFont
classes. Any hints where that stuff is? For example, I want to find the size of a string in a given font. Matt GerransMeasureCharacterRanges[^] There is also a function MeasureString() which is a member of the Graphics class, it is overloaded to perform a number of different measurement types. Hope that helps. Gary "A fellow with the inventiveness of Albert Einstein but with the attention span of Daffy Duck." Tom Shales talking about Robin Williams
-
MeasureCharacterRanges[^] There is also a function MeasureString() which is a member of the Graphics class, it is overloaded to perform a number of different measurement types. Hope that helps. Gary "A fellow with the inventiveness of Albert Einstein but with the attention span of Daffy Duck." Tom Shales talking about Robin Williams
Yes, that looks like just the thing. Thanks! Matt Gerrans