VpeSetRTFFont

<< Click to Display Table of Contents >>

Navigation:  RTF Functions >

VpeSetRTFFont

Previous pageReturn to chapter overviewNext page

Modify the build-in RTF font table.

void VpeSetRTFFont(

VpeHandle hDoc,

int ID,

LPCSTR name

)

VpeHandle hDoc

Document Handle

int id

the entry ID

LPCSTR name

the name of the font that shall be assigned to the given entry-id

Remarks:

The current value of the CharSet property is also stored in the font table entry when calling this method.

 

VPE has build-in a predefined font table:

\f1 is predefined as "Arial"

\f2 is predefined as "Times New Roman"

Examples:

For example change \f1 with:

VpeSetCharSet(hDoc, SYMBOL_CHARSET)

VpeSetRTFFont(hDoc, 1, "Wingdings")

 

Or you can add as many fonts to the table as you like, for example:

VpeSetCharSet(hDoc, SYMBOL_CHARSET)

VpeSetRTFFont(hDoc, 3, "Wingdings")

 

See also:

"RTF - Rich Text Format" in the Programmer's Manual