Project

General

Profile

Actions

Bug #18165

closed

GIFBUILDER: wrong bounding box calculation with TEXT and spacing

Added by Ralf Hettinger almost 17 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-02-08
Due date:
% Done:

0%

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

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

7542.patch (922 Bytes) 7542.patch Administrator Admin, 2008-02-08 00:02
Actions #1

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

Actions #2

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)?

Actions #3

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.

Actions

Also available in: Atom PDF