Function SetFont() Foundation
Activates a font that was saved to a string.
SetFont( <cFontString> , ;
[<nFontArea>] , ; // Default: 1
[<nCharOffSet|lChangePixelHeight>], ; // Default: 0
[<nNumberOfChars>] ; // Default: 256
) --> nErrorCode
Value | Description |
---|---|
0 | Font is active |
-1 | Invalid font area specified |
-2 | Not possible in this video mode |
-3 | Invalid font string |
<nFontArea>
Currently only font area 1 is supported.
<nCharOffSet>
If the 3rd parameter is numeric it specifies the number of characters of the font to be ignored.
If this parameter is .T. the video mode is adjusted to the pixel height of the font if necessary.
<nNumberOfChars>
Specifies the number of characters beginning at <nCharOffSet>+1 to be used. If the 3rd parameter is not numeric the 4th parameter is ignored.
This function is not supported under Windows.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.