Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

PrintSetFont – PB Docs 2022 – PowerBuilder Library

PrintSetFont – PB Docs 2022

PrintSetFont

PowerScript function

Description

Designates a font to be used for text printed with the Print
function. You specify the font by number. Use PrintDefineFont to associate
a font number with the desired font, a size, and a set of
properties.

Syntax

Argument

Description

printjobnumber

The number the PrintOpen function assigned to the print
job

fontnumber

The number (1 to 8) of a font defined for the job in
PrintDefineFont or 0 (the default font for the printer)

Return value

Integer. Returns the character height of the current font if it
succeeds and -1 if an error occurs. If any argument’s value is null,
PrintSetFont returns null.

Examples

This example starts a new print job and specifies that font number 2
is Courier, 18 point, bold, default pitch, in modern font, with no italic
or underline. The PrintSetFont statement sets the current font to font 2.
Then the Print statement prints the company name:

See also

PrintDefineFont

PrintOpen


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x