set_font

Summary

Change font and default fontsize in PDF document

Usage

{pdf(set_font, hash( [ name, font_name, ]
            [ size, font_size, ]
            [ colorCMYK, cmyk_color, ]
            [ colorRGB, rgb_color, ]
            [ justification, text_justification, ] ) )}

Parameters

NameTypeDescriptionRequired
name string Font name no
size integer Default font size no
colorCMYK array Array defining CMYK color values, 0 to 1 no
colorRGB array Array defining RGB color values, 0 to 255 no
justification string Text alignment, left, rigth, center or full no

Returns

Description

Change the font name and default font size. Only content added after this function is called will be changed.

Examples

Change fot to Times-Roman, font size 14.

{pdf(set_font, hash( name, "Times-Roman",

           size, 14 ) ) }

Change font to Helvetica, use full page witdh, blue text.

{pdf(set_font, hash( name, "Helvetica",

          justification, full,

          colorRGB, array( 255, 0, 0 ) ) )}

Comments

Contents

Reference

Database diagram
Template operators
    PDF
       anchor
       createIndex
       filled_circle
       filled_rectangle
       footer
       footer_block
       frame_header
       frontpage
       header
       header_block
       image
       keyword
       line
       link
       newline
       newpage
       set_font
       set_margin
       strike
       table
       text
       text_box
       text_frame
       toc
       ul
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

13/05/2004
5:15:15 pm
by Kåre Køhler Høvik

Last updated

13/05/2004
5:15:15 pm
by Kåre Køhler Høvik

Authors

Kåre Køhler Høvik



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.