Bug #21054 » 21054.patch
t3lib/class.t3lib_stdgraphic.php (working copy) | ||
---|---|---|
if (is_readable($fontFile)) {
|
||
// Calculate Bounding Box for part:
|
||
$calc = ImageTTFBBox(t3lib_div::freetypeDpiComp($sF * $strCfg['fontSize']), $angle, $fontFile, $strCfg['str']);
|
||
do {
|
||
$calc = ImageTTFBBox(t3lib_div::freetypeDpiComp($sF*$strCfg['fontSize']), $angle, $fontFile, $strCfg['str']);
|
||
} while($calc[2] < 0);
|
||
|
||
// Calculate offsets:
|
||
if (!count($offsetInfo)) {
|
||
$offsetInfo = $calc; // First run, just copy over.
|