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/C++ v10.0 : C library - <b>synopsis:</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Synopsis:
    #include <graph.h>
    void _FAR _setcharsize( short height, short width );

    void _FAR _setcharsize_w( double height, double width );

Description:
    The _setcharsize functions set the character height and width to the
    values specified by the arguments height and width.  For the
    _setcharsize function, the arguments height and width represent a number
    of pixels.  For the _setcharsize_w function, the arguments height and
    width represent lengths along the y-axis and x-axis in the window
    coordinate system.

    These sizes are used when displaying text with the  _grtext function.
     The default character sizes are dependent on the graphics mode
    selected, and can be determined by the  _gettextsettings function.

Returns:
    The _setcharsize functions do not return a value.

See Also:
    _grtext, _grtext_w, _gettextsettings

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

    main()
    {
        struct textsettings ts;

        _setvideomode( _VRES16COLOR );
        _gettextsettings( &ts );
        _grtext( 100, 100, "WATCOM" );
        _setcharsize( 2 * ts.height, 2 * ts.width );
        _grtext( 100, 300, "Graphics" );
        _setcharsize( ts.height, ts.width );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

    produces the following:

    The graphical image cannot be reproduced here. See the printed
    version of the manual.

Classification:
    PC Graphics

Systems:
     _setcharsize - DOS, QNX

    _setcharsize_w - DOS, QNX

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