MGL_setTextEncoding

Changes current text encoding.

Declaration

void MGLAPI MGL_setTextEncoding(
int encoding)

Prototype In

mgraph.h

Parameters

encoding | text encoding, one of MGL_textEncodingType constants

Description

This function changes current text encoding (also reffered to as charset). Encoding is used by MGL_drawStr and MGL_drawStrXY to interpret 8bit input string and translate it to wide char Unicode representation.

Default encoding is MGL_ENCODING_ASCII that only guarantees that characters with ASCII value <128 will be rendered correctly.

Encodings only work with TrueType fonts. Calling this function has no effect on MGL_drawStr_W and MGL_drawStrXY_W.

See Also

MGL_drawStr, MGL_drawStrXY, MGL_textEncodingType

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