Developer Tools
|
Office Productivity Applications
|
Enterprise Solutions
|
|||||||||||||||||||||||||||
Please click here for the eDocEngine ActiveX/.NET version of this article.
To ensure that a PDF file is truly portable, fonts used in the document need to be embedded in the file.
In case of certain TrueType fonts, such as Arial and Courier New, every Windows system is already bundled with them. Hence, embedding these fonts can only serve to increase size of the PDF file.
A good solution would be to embed only those TrueType fonts that are not always likely to be found on all systems, while excluding those that can reasonably be expected to be present everywhere.
This article deals with such a solution. We will walk you through the steps:
with gtPDFEngine1 do
begin
...
Preferences.EmbedTrueTypeFonts := etfFull;
FontEmbedExcludeList.Add('Arial');
FontEmbedExcludeList.Add('Courier New');
FontEmbedExcludeList.Add('Verdana');
...
...
Font.Name := 'Arial';
TextOut(1, 1,
'This sentence is in Arial font.');
Font.Name := 'Times New Roman';
TextOut(1, 2,
'This sentence is in Times New Roman font.');
Font.Name := 'Courier New';
TextOut(1, 3,
'This sentence is in Courier New font.');
...
Downloads:
| Privacy | Legal | Feedback | Newsletter | © 2002-2010 Gnostice Information Technologies Private Limited. All rights reserved. |
This site is best viewed on a screen with minimum resolution of 1152 x 864 pixels. Windows users are advised to use Microsoft ClearType Tuning for optimal experience. Linux and other users can enable font smoothing, as supported by their OS. Also, please use the latest version of a standards-compliant browser such as Opera, FireFox, Chrome or Safari.