Hello,

I still have the problem to load and work with type 1 afm fonts.
First i load the afm files with:

       FontFileFilter filefilter = new FontFileFilter(fontextension);
       File[] fontfilelist = new File(directoryname).listFiles(filefilter);
cat.debug("fontdir: " + directoryname + " count: " + fontfilelist.length);
       for (int i = 0 ; i < fontfilelist.length; i++) {
String fontname = fontfilelist[i].getName().substring(0,fontfilelist[i].getName().length()-4);
           FontFactory.register(fontfilelist[i].toString());
cat.debug("postcriptfontname... " + FontFactory.getFont(fontfilelist[i].toString()).getBaseFont().getPostscriptFontName() + " path: " + fontfilelist[i].toString()); }

after this, i print out all registered fonts with:

       TreeSet families = new TreeSet(FontFactory.getRegisteredFamilies());
       fontcount = families.size();
       for (Iterator i = families.iterator(); i.hasNext();) {
           String name = (String) i.next();
           cat.debug("FONTfactory: " + name);
       }

but i only see the standard fonts:

DEBUG FONTfactory: Courier
DEBUG FONTfactory: Helvetica
DEBUG FONTfactory: Symbol
DEBUG FONTfactory: Times
DEBUG FONTfactory: Times-Roman
DEBUG FONTfactory: ZapfDingbats

what is wrong?

with regards

thomas kübler

--
Mit freundlichen Grüßen

Thomas Kübler

--------------------------------

Dynamic Document Solution variex
Alt-Marienfelde 25
12277 Berlin

t. + 49 30 723 23 183
f. + 49 30 723 23 185

mailto:[EMAIL PROTECTED]
www.variex.de




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to