Project

General

Profile

Actions

Bug #24468

closed

Issue in Gifbuilder with Text using spacing+angle feature?

Added by Gabriel Kaufmann almost 14 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-01-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

On a new developed TYPO3-Project I noticed the following problem.

I want to render Text as Image. The final result should be rotated (-90 degrees) and use a letter-spacing. According to the GIFBUILDER/TEXT docs this can be applied using Typoscript by adding "angle" and "spacing" (see snipplet below).

I noticed very different rendering-results while trying to add/figure out correct values for spacing and enabled angle options.

1. The first image attached shows the rendering WITHOUT using angle + spacing (both commented out).

2. Enabled "anlge=-90" to rotate the text output. Until here it looks fine!

3. Enabled "angle=-90" and also letter-spacing by adding "spacing = 20".
=> angle isn't applied anymore! spacing works!

4. Adjusting the offset. "offset = 2,2" (without spacing!).
Result: with "angle=-90" looks fine.
-without "angle" the text is cut-off (top corner) -
> Why?

Final conclusion (for myself):
----------------------
- The different results look somehow strange to me. In my mind it would
make more sense if the angle would rotate from top-left corner of the text.

- It doesn't make any sense that angle+spacing don't work together?! Is that
anywhere in the docs for any good reason not to work together or is it a bug?

I try that using the following code:
-----------------------------------------------
10 = IMAGE
10.file = GIFBUILDER
10 = TEXT
10 {
text = Test
align = top,left
fontSize = 22
fontColor = #5f8d2a
angle = -90
spacing = 20
niceText = 0
antiAlias = 0
offset = 20,20
}
}

See attached test-cases. The Image contains the different rendering-results of TYPO3 (red-boxes in the image composition).

Please test and/or give me any hints to fix or approve my typoscript given above.

Thanks.
(issue imported from #M16908)


Files

test-case_1-4.png (4.53 KB) test-case_1-4.png Administrator Admin, 2011-01-04 09:53
Actions

Also available in: Atom PDF