Description
The FONTHEADFOOT message sets the font that is used by the headers and footers. The default font is 12 point Courier New.
Parameters
The FontInfo parameter is used to set the font information. The Font Name specifies the name of the font, "Times New Roman", for example. The Point Size is used to set the size of the text font. The Justification code is not used. The FontBold is used to make the font normal or bold. To set the justification for the header, footer, column headers, and column footers use the HEADER and FOOTER messages. The Italics and Underline flags are used to set these font properties. The ForeColor parameter sets the color of the font.
Parameter | Description of Fields | Comments | Default |
---|---|---|---|
Parm1 -Header Font | <1> Font Name | "Font String" | Courier New |
<2> Point Size | 4-128 | 10 | |
<3> Justification | Not used - set the justification with the header and footer flags | "" | |
<4> FontBold | 0=Normal 1=Bold | 0 | |
<5> Italics | 0/1 | 0 | |
<6> Underline | 0/1 | 0 | |
<7> Strikethrough | NOT USED | 0 | |
<8> ForeColor | COLORREF | 0 (Black) | |
Parm2 - Footer Font | Same format as the Header FontStructure |
See also
Example
/* The following example shows how to use the FONTHEADFOOT message to change the header to Bold, 14 point, Time New Roman and the footer to 10 Point, Times New Roman.*/ declare function Set_Printer stat = Set_Printer("INIT") ;* Start printing headerfont = "Times New Roman,14,L,1" ;* 14 point, Left just, Bold convert "," to @fm in headerfont ;* Use @FM delimiter footerfont = "Times New Roman,14,L" ;* 14 point, Left just, Bold convert "," to @fm in footerfont ;* Use @FM delimiter stat = Set_Printer("FONTHEADFOOT", headerfont, footerfont) ;* Set font stat = Set_Printer("TERM") ;* End printing