MGL_underScoreLocation_W

Returns the location to begin drawing an underscore for the font.

Declaration

void MGLAPI MGL_underScoreLocation_W(
int *x,
int *y,
const wchar_t *str)

Prototype In

mgraph.h

Parameters

x | x coordinate to be passed to MGL_drawStrXY
y | y coordinate to be passed to MGL_drawStrXY
str | Wide character string to measure

Description

This function takes an (x,y) location that would normally be used to draw a string with MGL_drawStrXY, and adjusts the coordinates to begin at the under score location for the current font, in the current drawing attributes. Thus the entire character string can be underlined by drawing a line starting at the computed underscore location and extending for MGL_textWidth pixels in length.

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

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