- Timestamp:
- Feb 6, 2009, 7:39:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/buttons/button.php
r391 r406 26 26 $TextPositionY = imagesy($Image) / 2 + ($BoundBox[1] - $BoundBox[7]) / 2 - 2; 27 27 $SizeX = array(); 28 for($I =0;$I<strlen($Text);$I++)28 for($I = 0; $I < strlen($Text);$I++) 29 29 { 30 30 $BoundBox = imagettfbbox($FontSizeShadow, 0, $FontFile, $Text{$I}); … … 38 38 $BoundBox = imagettfbbox($FontSizeShadow, 0, $FontFile, $Text{$I}); 39 39 $TextPositionX = $PositionX - ($BoundBox[2] - $BoundBox[0]) / 2; 40 ImageTTFText($Image, $FontSizeShadow, 0, $TextPositionX, $ShadowTextPositionY, $black, $FontFile, to_utf8($Text{$I}));40 ImageTTFText($Image, $FontSizeShadow, 0, $TextPositionX, $ShadowTextPositionY, $black, $FontFile, $Text{$I}); 41 41 $BoundBox = imagettfbbox($FontSize, 0, $FontFile, $Text{$I}); 42 42 $TextPositionX = $PositionX - ($BoundBox[2] - $BoundBox[0]) / 2; 43 ImageTTFText($Image, $FontSize, 0, $TextPositionX, $TextPositionY, $grey, $FontFile, to_utf8($Text{$I}));43 ImageTTFText($Image, $FontSize, 0, $TextPositionX, $TextPositionY, $grey, $FontFile, $Text{$I}); 44 44 $PositionX += $SizeX[$I] / 2; 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.