( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
/*http://localhost/thebrand/processFont2.php?route=theName&fontid=1597&myfont=&fontcatalogid=254722407698&themeid=1597&font_Username=BebasNeue.otf&font_Name=BebasNeue.otf&font_Url=BebasNeue.otf&font_Text=BebasNeue.otf&text_w=300&text_h=0&text_x=154&text_y=459&text_align=left&text_size=25&text_color=ffffff&url_color=ffffff&name_color=ffffff&username_color=ffffff&url_size=25&name_size=25&username_size=25&text_pad=0&text_line_height=30&text=santos%20okottah*/
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);
$mode = $_GET["mode"];
$font = $_GET["font"];
include("includes/processFunctionsX.php");
global $link;
require 'elementsMachine/textStyles/texttoImageX.php';
error_reporting(1);
$obj = new TextToImage();
global $link;
$sql ="SELECT * FROM `myfonts` where font='$font'";
$query = mysqli_query($link,$sql) or die(mysql_error());
while($row=mysqli_fetch_array($query)){
$font_Text= $row["font"];
$text_align= "center";
$text_size= "30";
$text_color= "000000";
$text_pad= 0;
$theText= "The Brand";
$saveImage= $_GET["saveImage"];
$theText = htmlentities($row["file"]);
$theText = str_replace('%92', '%27', $theText);
$text_line_height= $text_size;
$obj->setText($theText);
$obj->setFontSize($text_size);
$obj->setLineHeight($text_line_height);
$obj->setFontFile("assets/newfont/".$font_Text);
$obj->setUnderline(0);
$obj->setPadding($text_pad);
$obj->setHAlignment(strtolower($text_align));
$obj->setWidth(300);
$obj->setHeight(0);
$obj->sety(200);
$obj->setAngle(0);
$obj->setFontColor('#'.$text_color);
$obj->setBackgroundColor('transparent');
$obj->draw();
}
?>