getProp("bind-value"))) { $value = array_key_exists($bound, $params)?$params[$bound]:"?{$bound}?"; } else { $value = $this->getProp("value"); } $font = self::findFont("liberation sans"); if (!$font) { return; } $color = $this->getPropRgb("text-color"); $size = $this->getProp("font-size", 8); $dims = imagettfbbox($size, 0, $font, $value); $textAscent = abs($dims[7]); $textDescent = abs($dims[1]); $textWidth = abs($dims[0])+abs($dims[2]); $textHeight = $textAscent+$textDescent; imagettftext($gd, $size, 0, $x, $y + $textAscent, $color, $font, $value); //imagestring($gd, $size, $x, $y, $value, $color); } }