Bug #21054
closedGMENU - first menu item does not appear because of wrong calulation of text position
100%
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