Italic or Bold Font not Displayed in PDF

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Italic or Bold Font not Displayed in PDF

Postby IDEAL Software Support » Mon May 02, 2011 10:51 am

A customer recently reported a problem with the font "Tahoma", which is set to italic and is displayed correctly in italic in the VPE preview, but in the created PDF document, the font is displayed non-italic.

The cause is that there does not exist an italic version of the "Tahoma" font. Windows synthesizes the italic representation, but PDF does not do this. It is possible to write some PostScript instructions into the PDF stream, so that it is synthesized there, too. But this is not implemented into VPE and a complex task within the current code structure.

Solution: open the directory "Windows\Fonts", so you can see the complete list of installed fonts on your machine. You will also see for what fonts italic versions are available, which is for most fonts the case (for example "Arial" and "Times New Roman"). Do only use italic with fonts, which provide an italic version.

Note: the same problem applies to bold fonts. A bold version of the font must exist.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm

Re: Italic or Bold Font not Displayed in PDF

Postby IDEAL Software Support » Tue May 03, 2011 10:57 am

Update. The above applies to VPE v6.10 released in April 2011. Today we fixed this problem, so that for fonts with non-italic versions (like "Tahoma") skewing instructions are written to the PDF stream, and the italic representation is synthesized.

In addition we fixed a problem with the vertical positioning of text, which was wrong for fonts like "Tahoma".

Both fixes will be available in the next update of VPE.
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 72 guests