[scribus] Fitting Text
Gregory Pittman
gregp_ky at yahoo.com
Fri Jan 13 14:54:52 UTC 2012
On 01/13/2012 07:35 AM, Jean Mielot wrote:
>
> Of course in my case horizontal fitting would be equally important.
> I guess one could perhaps count the characters?
>
This is what I have done in one occasion. You can just crudely count
characters, then experiment to make a formula for adjusting the frame,
and if something more precise is needed, you might allow for adjustments
as far as certain wide vs narrow characters (w vs i, for example). But
is the additional script coding worth the work?
> This does raise one other question:
>
> Every time I add a textframe with text, the bottom of the frame is
> always slightly removed from the baselineof the text -
> possibly the line height - but I'm not sure.
>
> Is there a way to end the frame on the baseline and still allow the
> descender to extend? ID does this.
>
Some times a tiny script might also do the job -- imagine you write a
script that modifies a selected frame by extending its height by 3-5
points, and you could repeat the script if it isn't quite enough. This
would work quite fast, probably faster than going to Properties > X,Y,Z
(once it appears in your Recent Scripts list). Allowing descenders to
fall outside of frames is hardly the only answer to the problem.
A more elegant answer could come from running a script which takes font
size, frame size, and linespacing, then rounds up the height so that
there would be space for descenders. At best not easy.
Greg
More information about the scribus
mailing list