Built-In Font Table

<< Click to Display Table of Contents >>

Navigation:  Programming Techniques > RTF - Rich Text Format > Controlling RTF from VPE – ‘Easy RTF’ >

Built-In Font Table

Previous pageReturn to chapter overviewNext page

Moreover, VPE has built-in a predefined font table.

\f1 is predefined as "Arial" on Windows and Mac OS X, and as "Helvetica" on all other platforms

\f2 is predefined as "Times New Roman", on Windows and Mac OS X, and as "Times" on all other platforms

You can modify the table with the method:

void SetRTFFont(

long ID,

String name

)

For example, replace \f1 with Wingdings:

CharSet = SYMBOL_CHARSET

SetRTFFont(1, "Wingdings")

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

CharSet = SYMBOL_CHARSET

SetRTFFont(3, "Wingdings")