Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>set default say font</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET DEFAULT SAY FONT
Set the default font used by @ ... SAY and @ PIXEL ... SAY
------------------------------------------------------------------------------

Syntax
#include "say.ch"
SET DEFAULT FONT TO <hFont>

Arguments
<hFont> is a handle of a font to be used for data output
subsequently by @ ... SAY and @ PIXEL ... SAY.  The initial
setting is the default Windows font.
<hFont> can be one of the pre-defined Windows fonts, as
defined in WINDOWS.CH (the *_FONT values) and returned by
GetStockObject(), or a font from CreateFont() or ChooseFont().

Description
This command can be used to set the default font used by @ ...
SAY and @ PIXEL ... SAY.

Example
#include "say.ch"

SET DEFAULT SAY FONT TO GetStockObject( ANSI_VAR_FONT )

@ 10, 1 SAY "Hello from John"
@ 11, 1 SAY "...."

// the OEM_FIXED_FONT is usually the one used by DOS:
SET DEFAULT SAY FONT TO GetStockObject( OEM_FIXED_FONT )

@ 12, 1 SAY "A somewhat ugly font."


See Also: @ ... SAY @ PIXEL ... SAY CLEAR SAYS

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