/* {{{ proto bool GmagickDraw::setTextEncoding(string encoding) Specifies specifies the code set to use for text annotations. The only character encoding which may be specified at this time is "UTF-8" for representing Unicode as a sequence of bytes. Specify an empty string to set text encoding to the system's default. Successful text annotation using Unicode may require fonts designed to support Unicode. */ PHP_METHOD(gmagickdraw, settextencoding) { php_gmagickdraw_object *internd; char *encoding; int encoding_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &encoding, &encoding_len) == FAILURE) { return; } internd = (php_gmagickdraw_object *)zend_object_store_get_object(getThis() TSRMLS_CC); DrawSetTextEncoding(internd->drawing_wand, encoding); GMAGICK_CHAIN_METHOD; }
static bool HHVM_METHOD(ImagickDraw, setTextEncoding, const String& encoding) { auto wand = getDrawingWandResource(Object{this_}); DrawSetTextEncoding(wand->getWand(), encoding.c_str()); return true; }
MAGICK_NET_EXPORT void DrawingWand_TextEncoding(DrawingWand *instance, const char *encoding, ExceptionInfo **exception) { DrawSetTextEncoding(instance, encoding); MAGICK_NET_SET_DRAW_EXCEPTION; }