Never mind - I have to use FontFactory - sorry for the question.
 
thanks - dave
 
----- Original Message -----
To: itext
Sent: Friday, January 24, 2003 2:52 PM
Subject: ttf font exception

Hi;
 
I have the following line of code:
     BaseFont bf = BaseFont.createFont( "Arial Black", "Cp1252, BaseFont.NOT_EMBEDDED );
And it throws the exception:
    Exception occurred: DocumentException: Font 'Arial Black' with 'Cp1252' is not recognized.
 
I did a:
    for (Iterator i = FontFactory.getRegisteredFonts().iterator(); i.hasNext(); ) {
        System.out.println((String) i.next());
and "Arial Black" is one of the fonts listed.
 
Any ideas?
 
thanks - dave

Reply via email to