MGL_textBounds

Compute the bounding box for a text string.

Declaration

void MGLAPI MGL_textBounds(
int x,
int y,
const char *str,
rect_t *bounds)

Prototype In

mgraph.h

Parameters

x | x coordinate string would be drawn at
y | y coordinate string would be drawn at
str | String to measure
bounds | Place to store the computed bounds

Description

This function computes the bounding box that fits tightly around a text string drawn at a specified location on the current device context. This routine correctly computes the bounding rectangle for the string given the current text justification, size and direction settings.

See Also

MGL_textBounds_W, MGL_textHeight, MGL_textWidth, MGL_textWidth_W

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