K Karthik Seetharaman Feb 21, 2004 #1 Given a string, the font, fontstyle and fontsize how do i calculate the rectangle that will hold it ? thanks.
Given a string, the font, fontstyle and fontsize how do i calculate the rectangle that will hold it ? thanks.
H hOSAM Feb 21, 2004 #2 Karthik Seetharaman said: Given a string, the font, fontstyle and fontsize how do i calculate the rectangle that will hold it ? Click to expand... Use the method 'Graphics.MeasureString', for a given graphics object context.
Karthik Seetharaman said: Given a string, the font, fontstyle and fontsize how do i calculate the rectangle that will hold it ? Click to expand... Use the method 'Graphics.MeasureString', for a given graphics object context.
K Karthik Seetharaman Feb 21, 2004 #3 hOSAM said: Use the method 'Graphics.MeasureString', for a given graphics object context. Click to expand... Thanks. Can i figure out the font-size for a string given the measurements where it is supposed to go ? I have a rectangular area the width and height of which is fixed. I need t fit some strings in to that area.
hOSAM said: Use the method 'Graphics.MeasureString', for a given graphics object context. Click to expand... Thanks. Can i figure out the font-size for a string given the measurements where it is supposed to go ? I have a rectangular area the width and height of which is fixed. I need t fit some strings in to that area.
S Sujith Manuel Feb 24, 2004 #4 Hello Karthik, Check out the StringFormat class in GDI+ which can be used in DrawString GDI+ function. Regards, Sujith.
Hello Karthik, Check out the StringFormat class in GDI+ which can be used in DrawString GDI+ function. Regards, Sujith.