[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FONTSELECT()
 Determines font areas for normal- and high-intensity output
------------------------------------------------------------------------------
 Syntax

     FONTSELECT(<nFontArea>, [<nIntensiveFontArea>])
         --> nErrorCode

 Arguments

     <nFontArea>  Designates which font area the normal output mode
     should use.

     <nIntensiveFontArea>  Designates which font area the higher-
     intensity output mode should use.  The default is <nFontArea>.

 Returns

     FONTSELECT() returns an error code with the following meaning:

     Table 6-3: Error code definitions
     ------------------------------------------------------------------------
     Code    Definition
     ------------------------------------------------------------------------
      0      Font loaded successfully
     -1      Invalid font area specified
     -2      Impossible in current video mode
     ------------------------------------------------------------------------

 Description

     This function selects the font areas for both normal output and higher-
     intensity output.  Use SET COLOR TO with "+", to bring up to 512
     different characters to the screen at the same time.  The second font is
     displayed at a higher intensity.  If this is not what you want, you can
     change the display (not the attribute itself) with
     EGAPALETTE()/VGAPALETTE().  The system is preset for both output modes
     and corresponds to a call of FONTSELECT(1, 1).

 Note

     .  After you change the video mode with SETSCRMODE(), the fonts
        must be re-selected.

 Examples

     .  Show font area 1 with normal output and area 4 with high
        intensity:

        ? FONTSELECT(1, 4)      // 0  OK
        SET COLOR TO W
        ? "Nantucket"           // Output over font 1
        SET COLOR TO W+         // Output over font 4

     .  Show font area 2 for both output modes:

        ? FONTSELECT(2)


See Also: FONTLOAD() FONTRESET() SETSCRMODE()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson