LVectorBase::VectorFontMapperCallBack

#include "ltwrappr.h"

virtual L_INT LVectorBase::VectorFontMapperCallBack (pVector, pLogFont)

pVECTORHANDLE pVector;

/* pointer to a vector handle */

LPLOGFONT pLogFont;

/* pointer to a Log Font */

Processes each new font that is added to the resource list of the vector object.

Parameter

Description

pVector

Pointer to the vector image containing the objects to enumerate.

pLogFont

Pointer to a Log Font being processed.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

The LVectorBase::EnableFontMapper function calls your callback function as it gets the LogFont of each Text Object in the vector handle.

To use this function, you must do the following:

1. Derive a class from LVectorBase.

2. Override the L_INT LVectorBase::VectorFontMapperCallBack function in your class.

3. Call LVectorBase::EnableFontMapper, you must set bEnable = TRUE

Required DLLs and Libraries

LVKRN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

LVectorBase::EnableFontMapper, LVectorBase::IsFontMapperEnabled

Topics:

Mapping Fonts

 

 

Example

For an example, refer to LVectorBase::IsFontMapperEnabled.