Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - <u>synopsis:</u> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    void _FAR _unregisterfonts( void );

Description:
    The _unregisterfonts function frees the memory previously allocated by
    the  _registerfonts function.  The currently selected font is also
    unloaded.

    Attempting to use the  _setfont function after calling _unregisterfonts
    will result in an error.

Returns:
    The _unregisterfonts function does not return a value.

Example:
    #include <conio.h>
    #include <stdio.h>
    #include <graph.h>

    main()
    {
        int i, n;
        char buf[ 10 ];

        _setvideomode( _VRES16COLOR );
        n = _registerfonts( "*.fon" );
        for( i = 0; i < n; ++i ) {
            sprintf( buf, "n%d", i );
            _setfont( buf );
            _moveto( 100, 100 );
            _outgtext( "WATCOM Graphics" );
            getch();
            _clearscreen( _GCLEARSCREEN );
        }
        _unregisterfonts();
        _setvideomode( _DEFAULTMODE );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

See Also:
    _registerfonts, _setfont, _getfontinfo, _outgtext, _getgtextextent,
    _setgtextvector, _getgtextvector

See Also: _registerfonts _setfont

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