PSSetFont() |
|
Syntax
Function PSSetFont(cFontName, nStyle, nSize, nTFColor, nTBColor, nAngle)
TPageScript:SetFontAttributes(cFontName, nStyle, nSize, nTFColor, nTBColor, nAngle)
Returns
The old value.
Description
Use PSSetFont() to set the default font attributes to be used by future calls to any PS function that uses a font, like PSTextOut(). PSSetFont() does the same thing as PSSetFontAttributes() and is available for compatibility reasons.
Arguments
cFontName | Any valid installed font name. You may use PSGetFontCount() / PSGetFonts() to obtain a list of all font names available for the currently selected printer. |
nStyle | An Integer value of any of the following styles. Styles may be added togheter to combine styles. See below for the available font styles. |
nSize | A numeric value representing the size of the font expressed in points (one point = 1/72 of an inch). |
nTFColor | An Integer value representing either a predefined color value (negative value) or a RGB value. |
nTBColor | An Integer value representing either a predefined color value (negative value) or a RGB value. |
nAngle | An Integer value in the range of 0 to 360. |
Font styles
Constant | Value | Description |
APS_PLAIN | 0 | Plain |
APS_BOLD | 1 | Bold |
APS_ITALIC | 2 | Italic |
APS_UNDERLINE | 4 | UnderLine |
APS_STRIKEOUT | 8 | StrikeOut |
APS_BOLDITALIC | 3 | Bold + Italic |
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. |