I tried using registerDirectory() with 3 different directories.

iText found no text for my personal user account, 27 fonts for
/Library/Fonts and 13 fonts for /System/LIbrary/Fonts. The last
directories are well known places on each OS X system.

On my system are roughly 150 fonts or such.

When using FontFactories.Iterator() to test print each found font
using its name, I visually see 10 fonts printed. All others don't
appear. Moreover, I get a message that one font has a problem
regarding 'OS/2'.

Am 06.12.2005 um 06:35 schrieb Vineet Reynolds:

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 using 

BaseFont 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 substantial
error. But what error?

 
Might OS X itself be the problem? 

Reply via email to