summaryrefslogtreecommitdiff
path: root/Styles-generator.php
blob: 0cc518134b5b9ee67a3c78144d7a4c30a084b279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?

include("Config.BigLine.php");

define(WIDTH, 100);
define(HEIGHT, 50);

foreach ($Styles as $style => $font)
{
	$img=imagecreatetruecolor(WIDTH, HEIGHT);
	imagealphablending($img, FALSE);
	imagesavealpha($img, TRUE);

	$transparent=imagecolorallocatealpha($img, 255, 255, 255, 127);
	$black=imagecolorallocatealpha($img, 0, 0, 0, 0);

	imagefilledrectangle($img, 0, 0, WIDTH, HEIGHT, $transparent);
	imagettftext($img, 30, 3, 0, HEIGHT * 80/100 , $black, "".$font, $style);
	imagepng($img, "styles/$style.png");
}

?>