Previous PageTable Of Contents../index.htmlIndexNext Page

fx_loadfont( )

Description | Cautions | Example | Errors | Hints

Name:

int fx_loadfont(chdev, fontfh, mode)

Inputs:

int dev

fax channel device handle

int fontfh

fax font file handle

unsigned long mode

mode flag

Returns:

0 if success (on invocation in asynchronous mode)

-1 if failure (on invocation in asynchronous mode)

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

miscellaneous

Mode:

synchronous/asynchronous

 

Top Of PageDescription

The fx_loadfont( ) function loads ASCII font to the VFX/40ESCplus board. This function allows an application to change the fonts used by the VFX/40ESCplus for ASCII to fax conversion and for the fax page header.

The VFX/40ESCplus supports the following ASCII font sizes:

The fax driver determines the font size (font ID #0 or ID #3) from the header in the font file.

NOTE:
Only 20x16 and 12x12 font sizes are supported by the VFX/40ESCplus. Specifying any other font size results in an EFX_INVALID_FONT error.

If the font is successfully loaded on the specified board, the function returns TFX_LOADFONT.

Parameter

Description

chdev

Specifies the first fax device handle for the fax board on which to download a new font.

Note that all channels on the fax board are affected.

fontfh

Specifies the fax font file handle.

mode

Specifies the mode of operation.

 

EV_SYNC

Synchronous mode (default).

When you specify synchronous mode, the function does not return to the application until the fax font load is completed. A zero for success or -1 for failure is returned to the application.

 

EV_ASYNC

Asynchronous mode.

When you specify asynchronous mode, the fax font load is initiated and control is returned to the application immediately. A return code of zero indicates success and -1 indicates that an error occurred. When the fx_loadfont( ) function completes, one of the following fax events generated by the Standard Runtime Library is returned to your application:

TFX_LOADFONT - font successfully loaded

TFX_FAXERROR - error

Top Of PageCautions

You must issue this function on the first channel of the fax device and it will take effect on all channels of that device.

Top Of PageExample

Top Of PageErrors

ATDV_LASTERR( ) returns the following fax error codes for the following reasons:

 

EFX_INVALARG

Invalid argument

EFX_NOTIDLE

Channel not idle

EFX_INVALID_FONT

Invalid font data file

EFX_UNSUPPORTED

Function or sub-function not supported by firmware

For a complete list of fax errors, see Appendix D.

Top Of PageHints

To determine the fonts currently loaded on a VFX/40ESCplus board or any VFX solution board, use the SCFAXDEM fax demo program to send the fonttest.txt file to a fax machine. The fonts currently loaded on the specified board will print. The SCFAXDEM demo program is installed by default in the samples subdirectory.


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Intel Corporation
All rights reserved
This page generated February, 2002