Hi Bruno,
we are facing the problem, that inserDirectory processes 250 font files, consuming
more time than acceptable (8 seconds). I was browsing to code and observed that for
each font file a basefont is created. This includes loading mapping tables (which is
what we need in the first place) but this also include construction of kerning tables,
and numerous other datastructure:
TrueTypeFont.process()
...
fontName = getBaseFont();
fullName = getNames(4); //full name
familyName = getNames(1); //family name
fillTables();
readGlyphWidths();
readCMaps();
readKerning();
...
I would propose that these font information are only loaded when the font is actually
needed in the document, and thus speeding up the insertDirectory-call. A lazy Font
construction, if you wish. Is this problem recognized, planned to be solved or am I
completely mistaken here?
Cheers
Erwin
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions