On 3/30/11 6:34 PM, Carl Karsten wrote:
> I am trying to set the font of Paragraph in the report writer to 50, but the
> result is negative leading: the 2nd line overlaps the first;  Anyone know
> how to fix this?

Try explicitly setting the leading in the Paragraph object.


> Also I am trying to use all the space on the page, so if there is a small
> amount of text I want a larger font.
>
>                  <expr>self.episode_name</expr>
>                  <FontSize>max( 150 - len(self.episode_name)*4, 20
> )</FontSize>
>
> This kinda works, but not always, and is really the result of me trying a
> few things until I got something close.  I am hoping someone knows a proper
> formula, not my 4th guess.

There are some font metric functions in wx, not sure about reportlab. But 
aren't you 
going to affect more than one thing by increasing fontsize to accommodate the 
width 
(the objects above and below).

> This is for signs to stick outside a room.  example here:
> http://veyepar.nextdayvideo.com/main/room_signs/1/flourish2011_room_signs.pdf

Those look nice. Is that dReportWriter generated?


> The rfxml for this, with some data:
> https://github.com/CarlFK/veyepar/blob/master/dj/main/templates/TalkSigns.rfxml

Looks pretty good! In that first record did you want the talk title to wrap?

Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to