en:docs:fapi:viogetfont

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:docs:fapi:viogetfont [2021/09/05 03:09] – created prokusheven:docs:fapi:viogetfont [2021/11/04 12:37] (current) prokushev
Line 1: Line 1:
 +{{page>en:templates:fapiint}}
 +
 +====== 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:
 </code> </code>
  
-===Parameters=== +===== Parameters =====
-;RequestBlock (P[[VIOFONTINFO]]) - input/output: Address of the font structure that returns current RAM font or specified ROM or code page font depending on the request type. +
-;VioHandle ([[HVIO]]) - input : Reserved word of 0s.+
  
-==Return Code== +  * RequestBlock ([[PVIOFONTINFO]]) - input/output: Address of the font structure that returns current RAM font or specified ROM or code page font depending on the request type. 
-;rc (USHORT) - return:Return code descriptions are: +  * 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:Return code descriptions are: 
-*465 ERROR_VIO_DETACHED + 
-*467 ERROR_VIO_FONT +  *0 NO_ERROR 
-*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:
 </code> </code>
  
-===MASM===+====MASM====
 <code asm> <code asm>
 VIOFONTINFO struc VIOFONTINFO struc
Line 74: Line 86:
  
 [[http://www.edm2.com/index.php/VioGetFont]] [[http://www.edm2.com/index.php/VioGetFont]]
 +{{page>en:templates:fapi}}