SelectFont

<< Click to Display Table of Contents >>

Navigation:  Text Functions >

SelectFont

Previous pageReturn to chapter overviewNext page

The same as SetFont(). Selects a font and its size. The default is "Arial” and 10 pt. You can only select True-Type fonts installed on the machine on which VPE is running.

method void VPE.SelectFont(

string Name,

integer Size

)

also supported by TVPEObject

string Name

font name (e.g. "Arial")

int size

font size in points (not in metric or inch units!)

Default:

Platform

Value

Windows and Mac OS X

Arial, 10pt

Any other

Helvetica, 10pt

Remarks:

VPE can only handle True-Type fonts and the 14 built-in PostScript fonts. It can not use bitmap fonts, like for example “MS Sans Serif”.

 

For important details about fonts and font handling, please see the Programmer's Manual, chapter "Programming Techniques", subchapter "Fonts and Font Handling".