MGL_charWidth

Returns the width of a character in pixels.

Declaration

int MGLAPI MGL_charWidth(
    char ch)

Prototype In

mgraph.h

Parameters

ch

Character to measure

 

Return Value

Width of the character in pixels (will depend on currently active font)

Description

Return the width of the specified character, given the currently active font and attribute settings.

See Also

MGL_textWidth, MGL_textHeight, MGL_useFont, MGL_charWidth_W

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