Font Substitution

<< Click to Display Table of Contents >>

Navigation:  Programming Techniques > Fonts and Font Handling >

Font Substitution

Previous pageReturn to chapter overviewNext page

For PDF export VPE offers a method for font substitution. By using the method SetFontControl() you can instruct VPE to substitute a given font with another. This is especially helpful for developing Windows applications: You can use the Arial, Times New Roman and Courier New TT fonts for the preview and printing, and for PDF export you instruct VPE to use the Base 14 counterparts.

Whilst SetFontControl() is only active during the export to PDF, there is a second generic method to substitute fonts: SetFontSubstitution()

By using this method, VPE will substitute fonts immediately when creating a document. This is especially useful on Non-Windows platforms when importing RTF (Rich Text) documents. Often RTF documents are created on Windows platforms and use Windows specific True-Type fonts. With this method you can instruct VPE to substitute for example the True-Type font "Arial" with the Base 14 font "Helvetica", so Helvetica is used in place of Arial.