Have a Question?
Print

00167: How to use the ‘FONT’ mnemonic/mode in a program and in an alias line for a SYSPRINT device

First, the fonts must be entered exactly as they are returned from the fin(chan,ind=2) function. As an example, printing the fin(chan,ind=2) may return:

Courier
LinePrinter
Letter Gothic
Courier New
MS LineDraw

Here is an example using the ‘FONT’ mnemonic based on these values:

open(1)”PD”
print(1)’font'(“Letter Gothic”,10,20),”First Line in Gothic”
print(1)’font'(“Courier New”,10,20),”Second line in Courier New”
close(1)

Here is an example using the FONT mode on the alias line:

ALIAS PD SYSPRINT “WINDOWS PRINTER” DIALOG,FONT=”Letter Gothic”

Table of Contents
Scroll to Top