Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:viogetfont [2021/09/05 03:09] – created prokushev | en:docs:fapi:viogetfont [2021/11/04 12:37] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | |||
+ | ====== VioGetFont ====== | ||
+ | |||
+ | |||
This call returns either the font table of the size specified or the font in use. | This call returns either the font table of the size specified or the font in use. | ||
- | ==Syntax== | + | ===== Syntax ===== |
<code c> | <code c> | ||
Line 7: | Line 13: | ||
</ | </ | ||
- | ===Parameters=== | + | ===== Parameters ===== |
- | ; | + | |
- | ;VioHandle ([[HVIO]]) - input : Reserved word of 0s. | + | |
- | ==Return Code== | + | * RequestBlock ([[PVIOFONTINFO]]) - input/ |
- | ;rc (USHORT) - return: | + | * VioHandle ([[HVIO]]) - input : Reserved word of 0s. |
- | *0 NO_ERROR | + | |
- | *355 ERROR_VIO_MODE | + | ===== Return Code ===== |
- | *421 ERROR_VIO_INVALID_PARMS | + | |
- | *438 ERROR_VIO_INVALID_LENGTH | + | rc (USHORT) - return: |
- | *465 ERROR_VIO_DETACHED | + | |
- | *467 ERROR_VIO_FONT | + | |
- | *494 ERROR_VIO_EXTENDED_SG | + | *355 ERROR_VIO_MODE |
+ | *421 ERROR_VIO_INVALID_PARMS | ||
+ | *438 ERROR_VIO_INVALID_LENGTH | ||
+ | *465 ERROR_VIO_DETACHED | ||
+ | *467 ERROR_VIO_FONT | ||
+ | *494 ERROR_VIO_EXTENDED_SG | ||
+ | |||
+ | ===== Remarks ===== | ||
- | ==Remarks== | ||
For reqtype = 1, return ROM font, the font size requested must be supported by the display adapter installed. The 8x8, 8x14, 9x14, 8x16, or 9x16 character font may be requested for the VGA or PS/2 Display Adapters. The 8x8, 8x14, or 9x14 font may be requested for the enhanced graphics adapter. The 8x8 font may be requested for the colour graphics adapter. | For reqtype = 1, return ROM font, the font size requested must be supported by the display adapter installed. The 8x8, 8x14, 9x14, 8x16, or 9x16 character font may be requested for the VGA or PS/2 Display Adapters. The 8x8, 8x14, or 9x14 font may be requested for the enhanced graphics adapter. The 8x8 font may be requested for the colour graphics adapter. | ||
Line 30: | Line 40: | ||
For VioGetFont specifying reqtype = 1, return ROM font, the font returned is derived from the fonts contained in the system, EGA, VGA, and PS/2 Display Adapter BIOS data areas as applicable. There is an exception for the EGA, VGA and PS/2 Display Adapter when [[VioSetCp]] or [[VioSetFont]] has been issued. In that case, the font of the size requested is returned from the active code page or the list of user fonts already set. | For VioGetFont specifying reqtype = 1, return ROM font, the font returned is derived from the fonts contained in the system, EGA, VGA, and PS/2 Display Adapter BIOS data areas as applicable. There is an exception for the EGA, VGA and PS/2 Display Adapter when [[VioSetCp]] or [[VioSetFont]] has been issued. In that case, the font of the size requested is returned from the active code page or the list of user fonts already set. | ||
- | ==Bindings== | + | ===== Bindings ===== |
- | ===C=== | + | |
+ | ==== C ==== | ||
<code c> | <code c> | ||
typedef struct _VIOFONTINFO { /* viofi */ | typedef struct _VIOFONTINFO { /* viofi */ | ||
Line 52: | Line 64: | ||
</ | </ | ||
- | ===MASM=== | + | ====MASM==== |
<code asm> | <code asm> | ||
VIOFONTINFO struc | VIOFONTINFO struc | ||
Line 74: | Line 86: | ||
[[http:// | [[http:// | ||
+ | {{page> | ||