You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$box = new Box($im);
$box->setFontFace($font1);
$box->setFontColor(new Color(255, 255, 255));
$box->setTextShadow(new Color(0, 0, 0, 50), 2, 2);
$box->setFontSize(35);
$box->setBox(100, 150, 500, 400);
$box->setTextAlign('center', 'center');
$box->draw($text1."\n".$text2); // here only displays the second text with the font1
The text was updated successfully, but these errors were encountered:
Hi, how can I display 2 different fonts in the same text separated by a new line?
$font1 = "font1.ttf";
$font2 = "font2.ttf";
$text1 = "text";
$text2 = "text2";
$box = new Box($im);
$box->setFontFace($font1);
$box->setFontColor(new Color(255, 255, 255));
$box->setTextShadow(new Color(0, 0, 0, 50), 2, 2);
$box->setFontSize(35);
$box->setBox(100, 150, 500, 400);
$box->setTextAlign('center', 'center');
$box->draw($text1."\n".$text2); // here only displays the second text with the font1
The text was updated successfully, but these errors were encountered: