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>
    struct textsettings _FAR * _FAR _gettextsettings
        ( struct textsettings _FAR *settings );

Description:
    The _gettextsettings function returns information about the current text
    settings used when text is displayed by the  _grtext function.  The
    information is stored in the textsettings structure indicated by the
    argument settings.  The structure contains the following fields (all are
    short fields):

    basevectorx
        x-component of the current base vector

    basevectory
        y-component of the current base vector

    path
        current text path

    height
        current text height (in pixels)

    width
        current text width (in pixels)

    spacing
        current text spacing (in pixels)

    horizalign
        horizontal component of the current text alignment

    vertalign
        vertical component of the current text alignment


Returns:
    The _gettextsettings function returns information about the current
    graphics text settings.

See Also:
    _grtext, _grtext_w, _setcharsize, _setcharsize_w, _setcharspacing, _setcharspacing_w, _settextalign, _settextpath,
    _settextorient

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 );
    }

Classification:
    PC Graphics

Systems:
    DOS, QNX

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