Added a higher preference for horizontal unit names
git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@37 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -68,7 +68,7 @@ foreach ($info['units'] AS $unit) {
|
|||||||
|
|
||||||
// If the unit is wide enough, run the text horizontal,
|
// If the unit is wide enough, run the text horizontal,
|
||||||
// otherwise, we'll have to run it vertical.
|
// otherwise, we'll have to run it vertical.
|
||||||
if ($unit['width'] > 40 || ($unit['width'] >= $unit['depth'])) {
|
if ($unit['width'] > 20 || ($unit['width'] >= $unit['depth'])) {
|
||||||
imagestring($image, $unit['width']/25,
|
imagestring($image, $unit['width']/25,
|
||||||
$unit['left']+3, $unit['top']+3,
|
$unit['left']+3, $unit['top']+3,
|
||||||
$unit['name'],
|
$unit['name'],
|
||||||
|
|||||||
Reference in New Issue
Block a user