[Scribus] crashing with python

Johannes Wilm j
Fri Oct 31 23:51:52 CET 2003


On Friday 31 October 2003 23:47, Craig Bradney wrote:
> <snip>
>
> > 
> > A request for another function is GetTextWidth(lines,"name") and 
> > GetTextHeight(lines, "name") which should give the minimum dimensions the
> > 
 text box has to have given the number of lines for the entire content
> > to be displayed.
>
> 
> Wouldnt they require another argument?

Well yeah, you could just make it GetTextHeight(width, ["name"]) and 
GetTextWidth([height], ["name"]) and if the height isn't specified for 
GetTextWidth it will assume the minimum height of one line.

> 
> Ie GetTextHeight, based on a certain number of lines of a certain width?
> or current width?
> 
> Otherwise it could return the height for just one line of
> maximum/infinite length
> 
> and the same in the other directions for GetTextWidth?
> 
> Craig
> 



More information about the scribus mailing list