Bug #17185
closed
GIFBUILDER TEXT antiAlias=0 doesn't work with black texts
Added by Jo Hasenau over 17 years ago.
Updated over 8 years ago.
Description
If you set antiAlias=0 for TEXT objects in GIFBUILDER usually this should disable antialiasing, which is essential if you are rendering pixel fonts. Unfortunately this doesn't work if the fontColor is set to black (or #000000).
Reason: The PHP function ImageTTFText() is expecting a negative value to disable Freetype antialiasing.
In class.t3lib_stdgraphic.php this is done by the following line (608)
$Fcolor = $conf['antiaAlias'] ? $Fcolor : -$Fcolor;
Which will leave $Fcolor as is if it's value is zero, since -0 will still be 0.
There are two options to solve this issue:
1. Change TSref and tell people that hey have to use at least #000001 as fontColor to disable antialiasing
2. Change the code to work like this:
$Fcolor = $conf['antiaAlias'] ? $Fcolor : ($Fcolor==0 ? -1 : -$Fcolor);
(issue imported from #M5355)
- Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
It's still valid, but the file and the line have changed.
It's in line 665 TYPO3\CMS\Core\Imaging\GraphicalFunctions.php
I looked in the doc of the PHP function and I think we should note it in the documentation.
Would that be ok for you?
A hint in the docs would be enough - but the value mentioned there has to be # 000001 without the space.
The issue tracker made a link to an issue out of that value.
As you are member in the TSref Team, will you do this?
- Category set to Documentation
- Status changed from Needs Feedback to New
- Is Regression set to No
- Status changed from New to Needs Feedback
- Assignee set to Jo Hasenau
@Joey:
could you direct-edit this on github, please?
Could you please add bunnyfield as user to the repo?
Jo Hasenau wrote:
Could you please add bunnyfield as user to the repo?
You are now a collaborator. You can edit the docs now! Go ahead!
- Status changed from Needs Feedback to New
- Status changed from New to Closed
- Assignee deleted (
Jo Hasenau)
Also available in: Atom
PDF