( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
$style=$row[$index]['deformation']['font-style'];
$name=$row[$index]['deformation']['font-family'];
$weight=$row[$index]['static_styles']['font-weight']['desktop'];
$font_Username=$row[$index]['text'];
$font_Name=$row[$index]['text'];
$font_Url=$row[$index]['text'];
$font_Text=$row[$index]['text'];
//
// ` $textX_h=$row[$index]['height'];
// $textX_x=$row[$index]['left']['desktop'];
// $textX_y=$row[$index]['top']['desktop'];
$textX_align=$row[$index]['text-align']['desktop'];
if($textX_align == "inherit"){ $textX_align ="left"; }
$textX_size=$row[$index]['static_styles']['font-size']['desktop']-4;
$textX_size=$textX_size;
$textX_color=$row[$index]['static_styles']['color']['desktop'];
$url_color=$row[$index]['static_styles']['color']['desktop'];
$name_color=$row[$index]['static_styles']['color']['desktop'];
$username_color=$row[$index]['static_styles']['color']['desktop'];
$url_size=$row[$index]['static_styles']['font-size']['desktop'];
$name_size=$row[$index]['static_styles']['font-size']['desktop'];
$username_size=$row[$index]['static_styles']['font-size']['desktop'];
$textX_pad=$row[$index]['static_styles']['padding']['desktop'][1];
$textX_pad=0;
$textX_line_height=$row[$index]['static_styles']['line-height']['desktop'] ;
$textX_x=$row[$index]['left']['desktop'];
$textX_y=$row[$index]['top']['desktop'];
$layer_x=$row[$index]['left']['desktop'];
$layer_y=$row[$index]['top']['desktop'];
$layer_w=$row[$index]['width'];
$layer_h=$row[$index]['height'];
$layeropacity=$row[$index]['deformation']['opacity'];
$layer_r=$row[$index]['deformation']['xrotate'];
$angle = $row[$index]['deformation']['xrotate'];
$underline=$row[$index]['deformation']['text-decoration'];
$case=strtolower($row[$index]['deformation']['text-transform']);
$rgbcolor = hexToRgb($textX_color);
$json .='{
"type": "i-text",
"version": "3.6.6",
"originX": "left",
"originY": "top",
"left": '.$textX_x.',
"top": '.$textX_y.',
"width": '.$layer_w.',
"height": '.$layer_h.',
"fill": "'.$rgbcolor.'",
"stroke": null,
"strokeWidth": 0.1,
"strokeDashArray": null,
"strokeLineCap": "butt",
"strokeDashOffset": 0,
"strokeLineJoin": "miter",
"strokeMiterLimit": 4,
"scaleX": 1,
"scaleY": 1,
"angle": '.$angle.',
"flipX": false,
"flipY": false,
"opacity": 1,
"shadow": null,
"visible": true,
"clipTo": null,
"backgroundColor": null,
"fillRule": "nonzero",
"paintFirst": "fill",
"globalCompositeOperation": "source-over",
"transformMatrix": null,
"skewX": 0,
"skewY": 0,
"text": "'.$font_Text.'",
"fontSize": 40,
"fontWeight": 400,
"fontFamily": "Berkshire Swash",
"fontStyle": "normal",
"lineHeight": 1.16,
"underline": false,
"overline": false,
"linethrough": false,
"textAlign": "initial",
"textBackgroundColor": "",
"charSpacing": 0,
"selectable": true,
"evented": true,
"lockMovementX": false,
"lockMovementY": false,
"lockRotation": false,
"lockScalingX": false,
"lockScalingY": false,
"lockUniScaling": false,
"hasControls": true,
"hasBorders": true,
"hasRotatingPoint": true,
"name": "text",
"data": {
"id": "'.rand(111111,911111).'"
},
"activeFont": {
"family": "Berkshire Swash",
"category": "handwriting",
"type": "google"
},
"styles": {}
},';
?>