lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text centered in box of fixed height & width


From: Tod Olson
Subject: Re: Text centered in box of fixed height & width
Date: Fri, 23 Jul 1999 08:59:32 -0500

>>>>> "Jeff" == Jeff Kingston <address@hidden> writes:

Jeff> If you want to be a Lout hacker, then

Jeff>     @Box 1cm @High 5cm @Wide {
Jeff>         //0.5rt |0.5rt text |
Jeff>         //
Jeff>     }

Jeff> should work.  But package it in a definition, like this:

Jeff>     import @BasicSetup
Jeff>     def @CBox right x
Jeff>     {
Jeff>         @Box 1cm @High 5cm @Wide {
Jeff>             //0.5rt |0.5rt x |
Jeff>             //
Jeff>         }
Jeff>     }

Thanks.  Works like a champ and fixes an alignment problem: with my
old code, the box would vary its vertical position depending on
whether the contents were printable text or just a space.

-Tod


reply via email to

[Prev in Thread] Current Thread [Next in Thread]