Zdravím, snažím se vypisovat text do obrázku:
$image = Image::fromBlank( 500, 500, Image::rgb( 200, 200, 200 ) ); $image->string( 100, 100, 100, 'ěščřžýáíéĚŠČŘŽÝÁÍÉ', Image::rgb( 0, 0, 0 ) ); $image->send( Image::PNG );
Bohužel nefunguje čeština. Jak na to? Nete 2.0.12
skus namiesto string() pouzit ttfText(). ten vsak potrebuje nejaky font, napr. s arialom mi to ide OK
string()
ttfText()
$arial_font_path = '.../arial.ttf'; $image->ttfText(20, 0, 100, 100, Nette\Image::rgb(0, 0, 0), $font_path,'ěščřžýáíéĚŠČŘŽÝÁÍÉ');