( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
include("../includes/limittext.php");
include('../Connections/videoondemand.php');
require("../DbSql2.inc.php");
require("../NewsSql2.inc.php");
$db = new NewsSQL();
include("../protect.php");
ini_set('display_errors', 1);
$font = "c2fad30b041b3e616820d25a3fbeae93montserrat-bold.ttf";
include("../includes/processFunctionsX.php");
global $link;
require '../elementsMachine/textStyles/texttoImageX.php';
error_reporting(1);
$obj = new TextToImage();
$text ="Lorem ipsum dolor sit amet, consectetur ";
$font_Text= $font;
$text_align= "right";
$text_size= "22";
$text_color= "000000";
$text_pad= 0;
$font_Text = $_GET["fontStyle"];
$text_align = $_GET["textAlign"];
$text_size = $_GET["fontSize"];
$text_color = $_GET["textColor"];
$text = $_GET["text"];
$font = $_GET["font"];
$lineHeight= $_GET["lineHeight"];
$height= $_GET["height"];
$width= $_GET["width"];
$text = urldecode($text) ;
if($text_align == "initial") { $text_align = "left"; }
$text = htmlentities($text);
$text = str_replace('%92', '%27', $text);
$lineHeight= $lineHeight +$text_size ;
$obj->setText($text);
$obj->setFontSize($text_size);
$obj->setLineHeight($lineHeight+10);
$obj->setFontFile($font_Text);
$obj->setUnderline(0);
$obj->setPadding($text_pad);
$obj->setHAlignment(strtolower($text_align));
$obj->setWidth($width+200);
$obj->setHeight($height+200);
$obj->sety(200);
$obj->setAngle(0);
$obj->setFontColor('#'.$text_color);
$obj->setBackgroundColor('transparent');
$obj->draw();
?>