On 12/28/2011 5:20 PM, Paul McNett wrote: > On 12/28/11 12:37 PM, Nate Lowrie wrote: >> Found it. Is there a vertical alignment property for strings? > No. The y property specifies the baseline for the string. y's and g's have > descenders > that will drop below the baseline. > > Do you have a use-case for specifying "middle" for strings where we'd figure > that out > using this formula: > > if alignment == "middle": > y += (fontSize/2) > elif alignment == "top": > y += fontSize > > 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] Paul,
Here is my use case. Currently if I specify a border for a cell, the text bleeds into the border on the bottom. If I could middle align the text and make the cell a little bigger I could solve that problem. My solution now is using rectangles instead and it's a hack. Also, it would come in handy if you were word wrapping text, but I have to word wrap manually too. Regards, Nate _______________________________________________ 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]
