w photoshopie taki efekt nazywa sie STROKE.
probowalem recznie zrobic tak:
1\ rysowac literke czerwona
2\ na niej rysowac czarna literke pomniejszona i przesunieta w prawo
<?php function strokeChar(&$im, $char, $left) { $button_label_size = 12; $button_label_left = $left; $button_label_top = 20; $button_label_color = imagecolorallocate(&$im, 255, 0, 0); $ttf_font_path = \"fonts/framd.ttf\"; imagettftext($im, $button_label_size, 0, $button_label_left, $button_label_top, $button_label_color, $ttf_font_path, $char); $button_label_color = imagecolorallocate(&$im, 0, 0, 0); imagettftext($im, $button_label_size-2, 0, $button_label_left+2, $button_label_top-1, $button_label_color, $ttf_font_path, $char); } $im = imagecreate(300, 200) or die(\"Critical error: Cannot Initialize new GD image stream<br>Check if you have access to GD extension in <i>php.ini</i> file.\"); $bg = imagecolorallocate($im, 255, 255, 0); strokeChar($im, \"P\", 30); strokeChar($im, \"R\", 42); imagepng($im); imagedestroy($im); ?>
jednak ten sposob nie jest dobry, poniewaz litery nie sa dobrze otaczane dolna (czerwona) warstwa...
moze istnieje jakas funkcja, ktora to robi lub jakis inny sposob ...
