| Home
| Previous
| Next
| Up

MGL_textWidth_W

Returns the width of the wide character string in pixels.

Declaration

int MGLAPI MGL_textWidth_W(
const wchar_t *str)

Prototype In

mgraph.h

Parameters

str | Wide character string to measure

Return Value

Width of the wide 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.

This function is the same as MGL_textWidth, 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_textWidth, 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