|
@@ -87,6 +87,10 @@ ZEND_END_ARG_INFO()
|
|
ZEND_BEGIN_ARG_INFO_EX(format_border_arginfo, 0, 0, 1)
|
|
ZEND_BEGIN_ARG_INFO_EX(format_border_arginfo, 0, 0, 1)
|
|
ZEND_ARG_INFO(0, style)
|
|
ZEND_ARG_INFO(0, style)
|
|
ZEND_END_ARG_INFO()
|
|
ZEND_END_ARG_INFO()
|
|
|
|
+
|
|
|
|
+ZEND_BEGIN_ARG_INFO_EX(format_font_arginfo, 0, 0, 1)
|
|
|
|
+ ZEND_ARG_INFO(0, font)
|
|
|
|
+ZEND_END_ARG_INFO()
|
|
/* }}} */
|
|
/* }}} */
|
|
|
|
|
|
/** {{{ \Vtiful\Kernel\Format::__construct()
|
|
/** {{{ \Vtiful\Kernel\Format::__construct()
|
|
@@ -272,6 +276,26 @@ PHP_METHOD(vtiful_format, fontSize)
|
|
}
|
|
}
|
|
/* }}} */
|
|
/* }}} */
|
|
|
|
|
|
|
|
+/** {{{ \Vtiful\Kernel\Format::font(string $fontName)
|
|
|
|
+ */
|
|
|
|
+PHP_METHOD(vtiful_format, font)
|
|
|
|
+{
|
|
|
|
+ zend_string *font_name = NULL;
|
|
|
|
+
|
|
|
|
+ ZEND_PARSE_PARAMETERS_START(1, 1)
|
|
|
|
+ Z_PARAM_STR(font_name)
|
|
|
|
+ ZEND_PARSE_PARAMETERS_END();
|
|
|
|
+
|
|
|
|
+ ZVAL_COPY(return_value, getThis());
|
|
|
|
+
|
|
|
|
+ format_object *obj = Z_FORMAT_P(getThis());
|
|
|
|
+
|
|
|
|
+ if (obj->ptr.format) {
|
|
|
|
+ format_set_font_name(obj->ptr.format, ZSTR_VAL(font_name));
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+/* }}} */
|
|
|
|
+
|
|
/** {{{ \Vtiful\Kernel\Format::strikeout()
|
|
/** {{{ \Vtiful\Kernel\Format::strikeout()
|
|
*/
|
|
*/
|
|
PHP_METHOD(vtiful_format, strikeout)
|
|
PHP_METHOD(vtiful_format, strikeout)
|
|
@@ -342,6 +366,7 @@ zend_function_entry format_methods[] = {
|
|
PHP_ME(vtiful_format, align, format_align_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, align, format_align_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, number, format_number_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, number, format_number_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, fontColor, format_color_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, fontColor, format_color_arginfo, ZEND_ACC_PUBLIC)
|
|
|
|
+ PHP_ME(vtiful_format, font, format_font_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, fontSize, format_size_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, fontSize, format_size_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, strikeout, NULL, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, strikeout, NULL, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, underline, format_underline_arginfo, ZEND_ACC_PUBLIC)
|
|
PHP_ME(vtiful_format, underline, format_underline_arginfo, ZEND_ACC_PUBLIC)
|