Issue Bug Closed

#18165GIFBUILDER: wrong bounding box calculation with TEXT and spacing

Ralf Hettinger 02/08/08, 00:00 updated 09/09/13, 08:48

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.