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 _setcharspacing( short space );

    void _FAR _setcharspacing_w( double space );

Description:
    The _setcharspacing functions set the current character spacing to have
    the value of the argument space.  For the _setcharspacing function,
    space represents a number of pixels.  For the _setcharspacing_w
    function, space represents a length along the x-axis in the window
    coordinate system.

    The character spacing specifies the additional space to leave between
    characters when a text string is displayed with the  _grtext function.
     A negative value can be specified to cause the characters to be drawn
    closer together.  The default value of the character spacing is 0.

Returns:
    The _setcharspacing functions do not return a value.

See Also:
    _grtext, _grtext_w, _gettextsettings

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

    main()
    {
        _setvideomode( _VRES16COLOR );
        _grtext( 100, 100, "WATCOM" );
        _setcharspacing( 20 );
        _grtext( 100, 300, "Graphics" );
        getch();
        _setvideomode( _DEFAULTMODE );
    }

    produces the following:

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

Classification:
    PC Graphics

Systems:
     _setcharspacing - DOS, QNX

    _setcharspacing_w - DOS, QNX

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