jb wrote:
> thanks for your quick and valuable observation!
> if i register this font manually, the result is ok. (but i still see
> that FontFactoryImp.getFont() works "fine" in run mode, but it
> always returns the default font when running in debug mode without
> this explicit font registering..)

It's FontFactory.getFont(...) not FontFactoryImp.getFont(...);
unless you looked at the internal iText classes.
Apparently there's a difference in the JVM in run mode versus
debug mode. Did you use registerDirectories() or something else?
Maybe the state of your JVM is different in run mode versus
debug mode. Note that programs executed in the same JVM before
executing your code in run mode could have registered the font.
-- 
This answer is provided by 1T3XT BVBA

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to