MAGICK_NET_EXPORT void DrawingWand_Font(DrawingWand *instance, const char *family, const size_t style, const size_t weight, const size_t stretch, ExceptionInfo **exception) { DrawSetFontFamily(instance, family); DrawSetFontStyle(instance, (const StyleType)style); DrawSetFontWeight(instance, weight); DrawSetFontStretch(instance, stretch); MAGICK_NET_SET_DRAW_EXCEPTION; }
/* {{{ proto bool GmagickDraw::setFontStyle(int style) Sets the font style to use when annotating with text. The AnyStyle enumeration acts as a wild-card "don't care" option. */ PHP_METHOD(gmagickdraw, setfontstyle) { php_gmagickdraw_object *internd; long style_id = AnyStyle; /* Parse parameters given to function */ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &style_id) == FAILURE) { return; } internd = (php_gmagickdraw_object *)zend_object_store_get_object(getThis() TSRMLS_CC); DrawSetFontStyle(internd->drawing_wand, style_id); GMAGICK_CHAIN_METHOD; }
static bool HHVM_METHOD(ImagickDraw, setFontStyle, int64_t style) { auto wand = getDrawingWandResource(Object{this_}); DrawSetFontStyle(wand->getWand(), (StyleType)style); return true; }