Font which does not exist

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Font which does not exist

Postby Mankan » Sat Aug 20, 2005 12:58 pm

Hi

if you set a font to a font which does not exist - is there property or method which can tell me that.

For example if I do: SetFont("Arialxx",10) there is no error message.
When I display FontName I also get "Arialxx".

Any hints?

Magnus Forssblad
Mankan
 
Posts: 2
Joined: Sat Jul 23, 2005 3:52 pm

Postby IDEAL Software Support » Mon Aug 22, 2005 9:29 am

In case you specify a font which does not exist, there is automatically a font chosen which will match the given specs (size, attributes, charset) as much as possible. There is no error code.

If you want to test if a specific font is installed on the current system, use the Windows API.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 30 guests