Project

General

Profile

Actions

Bug #21054

closed

GMENU - first menu item does not appear because of wrong calulation of text position

Added by Sonja Schubert over 14 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-09-14
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The fist menu item does not appear, but always only the first.

The problem occours because of the wrong calculation of the text position in tslib_gifBuilder::ImageTTFBBoxWrapper

If you call the following function all in this function simply twice it works:
$calc = ImageTTFBBox(t3lib_div::freetypeDpiComp($sF*$strCfg['fontSize']), $angle, $fontFile, $strCfg['str']);

I have checked the image proccessing menu point in the install tool with the following result:

TYPO3 4.2.8
ImageMagick enabled: 1
ImageMagick path: (6.3.7)
ImageMagick path/LZW: (6.3.7)
Version 5/GraphicsMagick flag: im5

GDLib enabled: 1
GDLib using PNG: 0
GDLib 2 enabled: 0
IM5 effects enabled: 0 (Blurring/Sharpening with IM 5+)
Freetype DPI: 96 (Should be 96 for Freetype 2)
Mask invert: 0 (Should be set for some IM versions approx. 5.4+)

File Formats: gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,ai

The testmenu items all works fine exclude the following:
GD libary functions:
- Render text with TrueType font using 'niceText' option
- Render 'niceText' with a shadow under
(issue imported from #M11954)


Files

21054.patch (709 Bytes) 21054.patch Albrecht Köhnlein, 2011-07-11 14:32
Actions

Also available in: Atom PDF