The version in the CVS will register the T1 families. Be warned that the 
automatic family pairing may not work for some fonts, like Futura, that have 
the same family name for all the weights. In this case register the font names 
by hand using FontFactory.registerFamily():

Paulo

> -----Original Message-----
> From: Thomas Kübler [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 24, 2006 11:46 AM
> To: Paulo Soares
> Subject: Re: [iText-questions] load afm fonts with fontfactory
> 
> Hello,
> 
> thanks.
> 
> 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
> 
> 
> 
> Paulo Soares schrieb:
> > The font is registered but not the family. Can you send me 
> a complete T1 family for testing? I just have isolated T1 fonts.
> >
> > Paulo
> >
> >   
> >> -----Original Message-----
> >> From: Thomas Kübler [mailto:[EMAIL PROTECTED] 
> >> Sent: Friday, February 24, 2006 10:34 AM
> >> To: Paulo Soares
> >> Subject: Re: [iText-questions] load afm fonts with fontfactory
> >>
> >> Hello, Paulo,
> >>
> >> here the first messages:
> >>
> >> DEBUG fontdir: D:\Projekte\gsg\fonts\AFM count: 20
> >> DEBUG postcriptfontname... Futura path: 
> >> D:\Projekte\gsg\fonts\AFM\Futur.AFM
> >> DEBUG postcriptfontname... Futura-Bold path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturBol.AFM
> >> DEBUG postcriptfontname... Futura-BoldOblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturBolObl.AFM
> >> DEBUG postcriptfontname... Futura-Book path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturBoo.AFM
> >> DEBUG postcriptfontname... Futura-BookOblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturBooObl.AFM
> >> DEBUG postcriptfontname... Futura-Condensed path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturCon.AFM
> >> DEBUG postcriptfontname... Futura-CondensedBold path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturConBol.AFM
> >> DEBUG postcriptfontname... Futura-CondensedBoldOblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturConBolObl.AFM
> >> DEBUG postcriptfontname... Futura-CondensedExtraBold path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturConExtBol.AFM
> >> DEBUG postcriptfontname... Futura-CondExtraBoldObl path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturConExtBolObl.AFM
> >> DEBUG postcriptfontname... Futura-CondensedLight path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturConLig.AFM
> >> DEBUG postcriptfontname... Futura-CondensedLightOblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturConLigObl.AFM
> >> DEBUG postcriptfontname... Futura-CondensedOblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturConObl.AFM
> >> DEBUG postcriptfontname... Futura-ExtraBold path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturExtBol.AFM
> >> DEBUG postcriptfontname... Futura-ExtraBoldOblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturExtBolObl.AFM
> >> DEBUG postcriptfontname... Futura-Heavy path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturHea.AFM
> >> DEBUG postcriptfontname... Futura-HeavyOblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturHeaObl.AFM
> >> DEBUG postcriptfontname... Futura-Light path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturLig.AFM
> >> DEBUG postcriptfontname... Futura-LightOblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturLigObl.AFM
> >> DEBUG postcriptfontname... Futura-Oblique path: 
> >> D:\Projekte\gsg\fonts\AFM\FuturObl.AFM
> >>
> >>
> >> 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
> >>
> >>
> >>
> >> Paulo Soares schrieb:
> >>     
> >>> It would be interesting to see the debug output of the 
> >>>       
> >> first part of your code. 
> >>     
> >>>   
> >>>       
> >>>> -----Original Message-----
> >>>> From: [EMAIL PROTECTED] 
> >>>> [mailto:[EMAIL PROTECTED] On 
> >>>> Behalf Of Thomas Kübler
> >>>> Sent: Friday, February 24, 2006 10:14 AM
> >>>> To: itext-questions@lists.sourceforge.net
> >>>> Subject: [iText-questions] load afm fonts with fontfactory
> >>>>
> >>>> 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=k&kid0944&bid$1720&dat1642
> >>>> _______________________________________________
> >>>> iText-questions mailing list
> >>>> iText-questions@lists.sourceforge.net
> >>>> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>>>
> >>>>     
> >>>>         
> >>> -------------------------------------------------------
> >>> 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=k&kid0944&bid$1720&dat1642
> >>> _______________________________________________
> >>> iText-questions mailing list
> >>> iText-questions@lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/itext-questions
> >>>   
> >>>       
> >>     
> 


-------------------------------------------------------
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