AndrewFerrara Posted January 28, 2011 Share Posted January 28, 2011 Need to change the letter spacing.. help? $tag = 'www.xxxxxx.com'; $text_draw->setFontSize(; $text_draw->setFillColor("black"); $output_image->annotateImage($text_draw, 123, 34, 0, $tag); $text_draw->setFillColor("white"); $output_image->annotateImage($text_draw, 122, 33, 0, $tag); Link to comment https://forums.phpfreaks.com/topic/225906-imagemagick-letter-spacing-aka-kerning/ Share on other sites More sharing options...
BlueSkyIS Posted January 28, 2011 Share Posted January 28, 2011 can you show us more code, and especially the class code for those objects? Link to comment https://forums.phpfreaks.com/topic/225906-imagemagick-letter-spacing-aka-kerning/#findComment-1166320 Share on other sites More sharing options...
AndrewFerrara Posted January 28, 2011 Author Share Posted January 28, 2011 <?php $tag = 'somewhere.com'; $output_image = new Imagick(); $output_image->newImage(300, 34, '#000000'); $text_draw = new ImagickDraw(); $text_draw->setFont("files/calibri.ttf"); //path to font file $text_draw->setFontSize(; $text_draw->setFillColor("black"); $output_image->annotateImage($text_draw, 123, 34, 0, $tag); $text_draw->setFillColor("white"); $output_image->annotateImage($text_draw, 122, 33, 0, $tag); $output_image->setImageFormat('png'); header('Content-type: image/png'); echo $output_image; ?> Link to comment https://forums.phpfreaks.com/topic/225906-imagemagick-letter-spacing-aka-kerning/#findComment-1166325 Share on other sites More sharing options...
BlueSkyIS Posted January 28, 2011 Share Posted January 28, 2011 wow, neat. a quick google lead me to Imagickdraw::settextkerning posted by a contributor on this page: http://php.net/manual/en/book.imagick.php Link to comment https://forums.phpfreaks.com/topic/225906-imagemagick-letter-spacing-aka-kerning/#findComment-1166333 Share on other sites More sharing options...
AndrewFerrara Posted January 28, 2011 Author Share Posted January 28, 2011 Imagickdraw::settextkerning is not in the documentation hosted at http://php.net/manual/en/class.imagickdraw.php Link to comment https://forums.phpfreaks.com/topic/225906-imagemagick-letter-spacing-aka-kerning/#findComment-1166343 Share on other sites More sharing options...
jcbones Posted January 28, 2011 Share Posted January 28, 2011 As of release version 2.3.0RC2 the following methods not listed here are also available for use: Currently unstable releases (2.3.0+): * Imagick::getImageMimeType * Imagick::writeimagefile * Imagick::writeimagesfile * Imagick::resetimagepage * Imagick::setimageclipmask * Imagick::getimageclipmask * Imagick::animateimages * Imagick::recolorimage * Imagick::floodfillpaintimage * Imagick::opaquepaintimage * Imagick::transparentpaintimage * Imagick::decipherimage * Imagick::encipherimage * Imagick::getimagealphachannel * Imagick::getimagechanneldistortions * Imagick::getimagegravity * Imagick::setimagegravity * Imagick::remapimage * Imagick::exportimagepixels * Imagick::getimagechannelkurtosis * Imagick::functionimage * Imagick::importImagePixels * Imagick::sparseColorImage * Imagick::deskewImage * Imagick::segmentImage * Imagickdraw::gettextkerning * Imagickdraw::settextkerning * Imagickdraw::gettextinterwordspacing * Imagickdraw::gettextinterwordspacing * ImagickPixel::getColorValueQuantum * ImagickPixel::setColorValueQuamtum * ImagickPixel::getIndex * ImagickPixel::setIndex Latest stable (2.2.2): * Imagick::getImageChannelRange * Imagick::setImageAlphaChannel * Imagick::mergeImageLayers() * Imagick::setPointsize() * Imagick::getPointsize() Link to comment https://forums.phpfreaks.com/topic/225906-imagemagick-letter-spacing-aka-kerning/#findComment-1166376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.