skip to main content

Library Routines : WIN$PRINTER : WINPRINT-SET-FONT

WINPRINT-SET-FONT
The WINPRINT-SET-FONT function sets the font to be used by the subsequent WRITE statements.
Syntax:
 CALL "WIN$PRINTER" USING WINPRINT-SET-FONT 
Parameters:
01  winprint-data.
    03 wprtdata-set-font.
       05 wprtdata-font             handle of font.
Specifies the font handle to be used by the subsequent WRITE statements. It should be previously loaded with the WFONT-GET-FONT or the WFONT-GET-CLOSEST-FONT function.
Return code:
returnCode can be any signed numeric data item and provides additional information:
Warning:
For fonts to work correctly, the -P PDF and -P PREVIEW "Save" feature require setting either the FONT_FOLDER or FONT_FOLDER_EMBED printer attributes using WINPRINT-SET-ATTRIBUTE opcode. For example:
call "win$printer" using winprint-set-attribute
                  "FONT_FOLDER_EMBED""C:\WINDOWS\fonts"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left