MGL_textBounds_W
Compute the bounding box for a wide character string.
Declaration
void MGLAPI MGL_textBounds_W(
int x,
int y,
const wchar_t *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 |
Wide character 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.
This function is the same as MGL_textBounds, but provides support for Unicode wide characters (for far-east languages).
Note: Wide character fonts are only supported for bitmap and TrueType fonts. Vector fonts are not supported via this function.
See Also
MGL_textBounds, MGL_textHeight, MGL_textWidth, MGL_textWidth_W
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com