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.

ParameterDescription of FieldsCommentsDefault
Parm1 -Header Font<1> Font Name"Font String"Courier New
 <2> Point Size4-12810
 <3> JustificationNot used - set the justification with the header and footer flags""
 <4> FontBold0=Normal

1=Bold

0
 <5> Italics0/10
 <6> Underline0/10
 <7> StrikethroughNOT USED0
 <8> ForeColorCOLORREF0 (Black)
Parm2 - Footer FontSame format as the Header FontStructure  

See also

FONT Set_Printer Message

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
  • No labels