fg_fontload()

Win32 DirectX Fastgraph/Light

Prototype

void fg_fontload (int font_id);

Sub fg_fontload (ByVal font_id As Long)

procedure fg_fontload (font_id : integer);

Description

The fg_fontload() function makes the requested Windows stock font the current font.

Parameters

font_id is a code identifying which font to load. It must reference one of the six stock fonts supplied with Windows, as shown here:

Value

Symbolic Equivalent

10

OEM_FIXED_FONT

11

ANSI_FIXED_FONT

12

ANSI_VAR_FONT

13

SYSTEM_FONT

14

DEVICE_DEFAULT_FONT

16

SYSTEM_FIXED_FONT

Return value

none

Restrictions

none

See also

fg_fontdc(), fg_logfont(), fg_print()

Examples

Fontdemo

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.