fgf_justify() (Fastgraph/Fonts)

Win32 DirectX Fastgraph/Light

Prototype

void fgf_justify (int xjust, int yjust);

Sub fgf_justify (ByVal xjust As Long, ByVal yjust As Long)

procedure fgf_justify (xjust, yjust : integer);

Description

The fgf_justify() function defines the horizontal and vertical justification settings for strings displayed with fgf_print() and fgf_printc(). By default, strings are displayed such that the left and bottom edges of the first character are at the current graphics position.

Parameters

xjust defines the horizontal justification. If xjust is -1, strings will be displayed left justified relative to the current graphics x position. If xjust is 0, strings will be centered about the x position. If xjust is 1, strings will be right justified.

yjust defines the vertical justification. If yjust is -1, the bottom of the characters (excluding descenders) will be the current graphics y position. If yjust is 0, strings will be centered about the y position. If yjust is 1, the top of the characters will be at the y position.

Return value

none

Restrictions

The values of the xjust and yjust parameters must be -1, 0, or 1.

See also

fgf_getxjust(), fgf_getyjust(), fgf_print(), fgf_printc()

Examples

FGFW1, FGFW3, FGFW4, FGFW5, FGFW6, FGFW7

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.