Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>fontselect()</b> http://www.X-Hacker.org [<<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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson