The font file [ Corvisa ] may be corrupt or unsupported [ did you rename it ? ]. Can we have a copy of the file so that we can try using it in a test program.
Try using registerDirectory() so that iText will register all the fonts present in the directory specified. That will also enable you to build the font lister app. One of the examples in the tutorial shows how to list the fonts registered with iText. You may have to add UI logic to it.
On 12/6/05, Stefan Pantke <[EMAIL PROTECTED]> wrote:
I tried to load a front called CorsivaBold.ttf usingBaseFont aBF = BaseFont.createFont("/Library/Fonts/CorsivaBold.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);Font font = new Font( aBF, 12);
As soon as my app runs, I get an exception explaining:Document problem: /Library/Fonts/CorsivaBold.ttf is not a valid TTF or OTF file.Document problem: /Library/Fonts/CorsivaBold.ttf is not a valid TTF or OTF file.
Since I'm new to font handling at this level, I probably made some substantialerror. But what error?
Might OS X itself be the problem?
I tried to understand the iText tutorial but failed to get the essential point.Do we have more details available?
Additionally, do we have a certain 'Font lister' app, which tries to check each andany font in a given directory regarding its type and properties?
I'd like to add a 'Font Chooser' pulldown in my app. Additionally, this might helpme myself finding right settings ;-)
Cheers