The next step is to test how we place font controls on individual
text.
See the the line beginning with 
  page size 150 140 
  Enabling this disables the rest of the content.
  If comment out this line and run the code, you'll see some effects
  of font and alignment controls.

  I believe that Gabriele can comment on this.
  tim

;; ---------------------------------------------------------------------  
do %pdf-maker.r
 write/binary %pdf-test.pdf layout-pdf compose/deep[
    [ ; page 1. Make a nice line at top and bottom
        page size 150 140 ;; this causes the following content to disappear
        line 10 281 201 281 ;; top
        line 10 16 201 16   ;; bottom
        textbox [ ;; Two paragraphs of text
            LEFT ALIGN " " ;; empty line to 'lower' the first line
            newline "This is Page One." newline ;; force line break
            ;; Let's make the next line blue and set font to Courier
            FONT Courier 4.23 0.0.200 
            "This is the next line." FONT Helvetica 4.23 0.0. ;; reset font
            ;; Now lets set  Times-BoldItalic font
            newline
            FONT Times-BoldItalic 4.6
            "This is the third line." p ;; short for END PARAGRAPH
                                        ;; two line breaks
            CENTER FONT Helvetica 4.23 0.0. ;; reset font and center it         
                               
            "This is the next paragraph" newline
            "This is the next line and" newline
            "this is the last line"
            ]
        ]
    ]
  
-- 
Tim Johnson <[EMAIL PROTECTED]>
      http://www.alaska-internet-solutions.com
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to