Bug #18165
closedGIFBUILDER: wrong bounding box calculation with TEXT and spacing
0%
Description
This issue is somehow mentioned in TSRef GIFBUILDER's section GIFBUILDER.(GBObj).TEXT and concerns the parameter spacing.
TSRef states for spacing: "Pixel-distance between letters. This may render ugly!"
Indeed it will render especially ugly, if you have antialiasing (ie upscaling and downscaling again) applied to the TEXT object by niceText or antialiasing properties to GIFBUILDER.(GBObj).TEXT.
It will as render even more "ugly" if you rely on correct determination of the image width when using [.w] in XY of the whole GIFBUILDER object, with ugly meaning that the resulting "bounding" box of the TEXT object will be generally to small.
Applied patch solves the problem (at least for my test cases).
cObject = IMAGE
cObject {
file = GIFBUILDER
file {
XY = [10.w],12
offset = 0,9
10 = TEXT
10 {
text = a longer sentence width spacing and niceText applied
fontSize = 10
spacing = 1
niceText = 1
}
}
}
(issue imported from #M7452)
Files
Updated by Loek Hilgersom over 15 years ago
I was just looking into the letter-spacing issue and found that IM is supporting inter-character kerning since recently. Although it may take a while until this version will be widely used, it looks like this could be the better solution in the long run.
"As of IM v6.4.7-8 you can use "-kerning" to insert extra inter-character space between each letter in text strings."
http://www.imagemagick.org/Usage/text/#kerning
Updated by Alexander Opitz over 11 years ago
- Category deleted (
Communication) - Status changed from Accepted to Needs Feedback
- Target version deleted (
-1)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Oliver Hader) - Is Regression set to No
No feedback for over 90 days.