Project

General

Profile

Bug #21054 » 21054.patch

Albrecht Köhnlein, 2011-07-11 14:32

View differences:

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.
    (1-1/1)