msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
VIOFONTINFO (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_VIO
 
typedef struct _VIOFONTINFO {    /* viofi */
    USHORT cb;
    USHORT type;
    USHORT cxCell;
    USHORT cyCell;
    PVOID  pbData;
    USHORT cbData;
} VIOFONTINFO;
 
The VIOFONTINFO structure contains information about the font.
 
Field   Description
────────────────────────────────────────────────────────────────────────────
 
cb      Specifies the size of the structure (in bytes). Programs written in
        the C language should use the sizeof operator to set this field.
 
type    Specifies the request type. This field must be VGFI_GETCURFONT to
        retrieve the current font. It must be VGFI_GETROMFONT to retrieve a
        ROM font. It must be 0x0000 to set a font.
 
cxCell  Specifies the width (in pels) of each character cell in the font.
 
cyCell  Specifies the height (in pels) of each character cell in the font.
 
pbData  Points to the buffer that receives the requested font table or can
        be set to NULL to direct the VioGetFont function to supply an
        address. In the latter case, the function copies the address of the
        font to this field. The address specifies either a RAM or a ROM
        address, depending on the request type.
 
        For the VioSetFont function, it points to the buffer that contains
        the font table to set a font. The format of the font table depends
        on the display adapter and screen mode.
 
cbData  Specifies the length of the font (in bytes).
 
Comments
 
When requesting a ROM font, the cxCell and cyCell fields must be set before
calling the VioGetFont function. These fields identify the font to be
retrieved.
 
See Also
 
VioGetFont, VioSetFont