On Tue, Jan 13, 2009 at 7:00 PM, Bernard Rankin <beranki...@yahoo.com> wrote:
>> Is there a way to create a single-line fixed width text box in GIMP such that
>> the text inside starts out at some desired size, but is automatically shrunk 
>> in
>> size to fit the width of the box if the supplied text is too long.
> Anybody?

Just thinking out loud here - this is untested and possibly impossible...

Can you render it with a nice default point size, then scale the new
layer to fit?

A more elegant approach - render with a default point size, measure
the new layer - if the new layer is too large, re-render at a smaller
point size - you can use the ratio if [target width]/[new text layer
width] = [default point size]/[the point size you need to fit].

You may need to convert the text layer to a non-text layer to get
actual measurements - not sure.

Again - just rambling here, but maybe it will be useful...

Gimp-user mailing list

Reply via email to