@@ -144,6 +144,17 @@ return array
'update' => 'text',
),
+ 'text_width' => array
+ (
+ 'type' => 'varchar-11',
+ 'name' => '文字宽度',
+ 'default' => '',
+ 'desc' => '文字宽度',
+ 'match' => 'is_string',
+ 'update' => 'text',
+ 'show' => 'type=2',
+ ),
+
'width' => array
(
'type' => 'varchar-11',
@@ -109,6 +109,10 @@ class Api
//$param['left'] = $position[2];
$param['size'] = $value['size'];
$param['angle'] = $value['angle'];
+ if (isset($value['text_width']) && $value['text_width'] > 0) {
+ $param['width'] = $value['text_width'];
+ }
$fonts = array