Supported Browsers Home   
MGL_textHeight Previous   
MGL_textWidth_W Next   
External Functions Up   

MGL_textWidth

Returns the width of the character string in pixels.

Declaration

int MGLAPI MGL_textWidth(
    const char *str)

Prototype In

mgraph.h

Parameters

str

Character string to measure

 

Return Value

Width of the character string in pixels

Description

Returns the width of the specified character string using the dimensions of the currently active font in pixels. This includes any scaling transformations that are applied to the font and will be as accurate as possible at the resolution of the display device.

See Also

MGL_textWidth_W, MGL_textHeight, MGL_drawStr, MGL_drawStr_W, MGL_getCharMetrics, MGL_getCharMetrics_W, MGL_getFontMetrics

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com