Q45586: Use _setfont to Specify Characteristics for Current Font
Article: Q45586
Product(s): See article
Version(s): 2.00
Operating System(s): MS-DOS
Keyword(s): ENDUSER | S_QuickPascal | mspl13_c
Last Modified: 26-JUN-1989
The function _setfont is used to select the font that is to be
currently active and to define its characteristics. Full
documentation on specifying options for _setfont can be found on Pages
266-267 of "C For Yourself."
The function is prototyped as follows:
short far _setfont(unsigned char *);
The function's argument is a pointer to a character string. The string
consists of letter codes that describe the desired font, using
descriptors that specify the following:
The name of the desired font (required)
Whether a vector or raster font is desired (optional)
The desired height (in pixels) (optional)
The desired width (in pixels) (optional)
Whether a fixed-width or proportional
font is desired (optional)
Whether or not to allow the program to
choose a "best fit" from the available
fonts, if an exact match cannot be made (optional)
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.