here's an easy way to add underlining

jglynn - June 22, 2009 - 21:51
Project:Signwriter
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

lines 989-993 in signwriter.module changed to

else {
imagettftext($im, $fontsize, $angle, $x + abs($box[0]), $y + abs($box[5]), $foreground, $fontfile, $line);

if ($underline) imagettftext($im, $fontsize, $angle, $x + abs($box[0]), $y + abs($box[5]), $foreground, $fontfile, '______________________________');
}

It just adds the '_' across the width of the image (overtop the original text), which makes a pretty good underline!

#1

Justin W Freeman - July 15, 2009 - 12:24
Version:6.x-1.1» 6.x-2.x-dev

changing version

 
 

Drupal is a registered trademark of Dries Buytaert.