I used the class from Mr. Bruno's book HelloWorldAbsolute (chapter 2) but
using a computer modern font, cmmi7.
I changed the BaseFont bf to BaseFont bf =
BaseFont.createFont("C:/itext-core/itext/resources/cmmi7.afm","",
BaseFont.EMBEDDED); The problem is I have this Exception...

Exception in thread "main" java.util.NoSuchElementException
    at java.util.StringTokenizer.nextToken(Unknown Source)
    at com.lowagie.text.pdf.Type1Font.process(Unknown Source)
    at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source)
    at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
    at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
    at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
    at Demo.HelloWorldAbsolute.main(HelloWorldAbsolute.java:52)

I have the afm and pfb file in the folder resources, and it works ok with
other cmmi like cmmi10 or cmmi8 in the same folder... but it seems
createFont can't create this font.

I don't know if this is because the files cmmi7.afm or cmmi7.pfb are
corrupted... anybody could tell what is going on ?

Thanks in advance
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to