Fonts and Character Display: Function Summary

fg_ddfreedc()

Releases a device context created with fg_ddgetdc(). Available in Fastgraph's DirectX libraries only.

fg_ddgetdc()

Creates a device context for a DirectDraw surface. Available in Fastgraph's DirectX libraries only.

fg_fontdc()

Defines the current device context for fg_print(). By default, strings will be directed to the client area, but fg_fontdc() can redirect strings to the active virtual buffer.

fg_fontload()

Makes the requested stock font the current font.

fg_getxjust()

Returns the current horizontal justification setting for strings displayed with fg_print().

fg_getyjust()

Returns the current vertical justification setting for strings displayed with fg_print().

fg_justify()

Defines the horizontal and vertical justification settings for strings displayed with fg_print().

fg_logfont()

Makes the requested logical font the current font.

fg_print()

Displays a string of characters, relative to the graphics cursor position, using the current color and current font. By default, strings are displayed such that the bottom row of the first character is at the current graphics position. On return, the graphics cursor is positioned just to the right of the last character displayed.

fg_setangle()

Defines the angle of rotation at which software characters are displayed. The angle is measured in degrees counterclockwise from the positive x axis.

fg_setratio()

Defines the aspect ratio for software characters. The aspect ratio is the ratio of character width to character height.

fg_setsize()

Defines the height of software characters in screen space units.

fg_setsizew()

Defines the height of software characters in world space units.

fg_swchar()

Displays a string of software characters using the current color index. The string may be left justified, centered, or right justified relative to the graphics cursor position. The string passed to fg_swchar() may contain special operators that allow switching between fonts, underlining, superscripting, or subscripting.

fg_swlength()

Returns the length in world space units of a string of software characters.

fg_swtext()

A scaled down version of fg_swchar(). It does not include the alternate font character definitions and thus requires less memory than fg_swchar().

<< Prev

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.