PSSetFontName()

Syntax

Function PSSetFontName(nFontName)
TPageScript:SetFontName(nFontName)

Returns

The old font name in use.

Description

Use PSSetFontName() to set the default font to be used by future calls to any PS function that uses a font, like PSTextOut(), when no font name is specified (An empty string is passed).

Arguments

cFontName Any valid installed font name. You may use PSGetFontCount() / PSGetFontNames() to obtain a list of all font names available for the currently selected printer.

FontName must be a True Type font is you're printing to a PDF file using the DEV_PDFFILE device. Bitmap fonts aren't supported.