'insert "It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of"'
call setbusy(87)
'insert " incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us,"'
call setbusy(94)
'insert " we had nothing before us, we were all going direct to Heaven, we were all going direct the other way."'
call setbusy(100)
closebusyrequester bh
/* Get the names and number of faces */
getfontfamilies faces
facecount=result
/* Count Fonts */
fontcount=0
do i=0 to facecount-1
getfontstyles faces.i styles
stylecount=result
/* Repeat for each style */
do ii=0 to stylecount-1
fontcount=fontcount+1
end ii
end i
/* MAIN LOOP */
openbusyrequester message "'Creating Font Samples...'" thermometer enabled abort enabled total fontcount current 0
bh=result
printcount=0
do i=0 to facecount-1
getfontstyles faces.i styles
stylecount=result
/* Repeat for each style */
do ii=0 to stylecount-1
printcount=printcount+1
/* Change the title */
'selecttext at 0.75i 1.25i'
'selecttext all'
'insert "'faces.i'-'styles.ii'"'
/* Change the font and style */
'refresh wait'
'clearstyletag FontSample'
'setfont 'faces.i' styletag FontSample'
'settypestyle 'styles.ii' styletag FontSample'
'refresh continue'
/* Print the font sample page */
call setbusy(printcount)
'printdocument copies 1 page 1 sides both scale actual output grayscale printermarks off mirror off negative off'