RevPrinttext

Jeanne A. E. DeVoto jeanne at runrev.com
Mon Apr 15 03:44:25 EDT 2002


At 11:43 PM -0700 4/14/2002, yves COPPE wrote:
>Is it possible, when using revprinttext to choose the font in which
>the text will be printed ?

Yes. There is an undocumented fourth parameter to revPrintText, which is a
field reference. The font, size, and style are taken from this field. For
example, suppose you have a field named "Big Font" that's 24-point Geneva
bold, and you want to print text in 24-point Geneva bold. The following
command will do this:

  revPrintText "Some Text","Header Text","Footer Text", \
     the long name of field "Big Font"

As with revPrintField, you must use an expression that evaluates to a field
reference, not a field reference itself. For example, this will not work:
  revPrintText "Some Text","header","footer",field "Big Font"

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list