Hello, Yes, I have metrics file with arial fonts which is stored in windows directory. I did those commands like this:
$java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-apis.jar \ org.apache.fop.fonts.apps.TTFReader \ C:\WINNT\Fonts\arial.ttf D:\fop-fonts\arial.ttf.xml $ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-apis.jar \ org.apache.fop.fonts.apps.TTFReader \ C:\WINNT\Fonts\arialb.ttf D:\fop-fonts\arialb.ttf.xml $ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-apis.jar \ org.apache.fop.fonts.apps.TTFReader \ C:\WINNT\Fonts\arialbi.ttf D:\fop-fonts\arialbi.ttf.xml $ java -cp optional\fop-0.20.4.jar;core\xercesImpl-2.0.0.jar;core\xml-apis.jar \ org.apache.fop.fonts.apps.TTFReader \ C:\WINNT\Fonts\ariali.ttf D:\fop-fonts\ariali.ttf.xml But, i didnt download extra fonts, i used only the windows directory. Where can i get?:) Can you recommend a link? RR 2009/10/9 Barbara Slupik <[email protected]> > Hello > > Do you have metrics files with hungarian characters? If I remember well you > have to get ttf fonts with hungarian characters and build xml metric files > with commands similar to these: > > java -classpath > classes:lib\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar > org.apache.fop.fonts.apps.TTFReader -d DEBUG fonts\TIMES.ttf fonts\TIMES.xml > java -classpath > classes:lib\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar > org.apache.fop.fonts.apps.TTFReader -d DEBUG fonts\TIMESBD.ttf > fonts\TIMESBD.xml > java -classpath > classes:lib\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar > org.apache.fop.fonts.apps.TTFReader -d DEBUG fonts\TIMESBI.ttf > fonts\TIMESBI.xml > java -classpath > classes:lib\fop.jar;lib\avalon-framework-cvs-20020806.jar;lib\xml-apis.jar;lib\xercesImpl-2.2.1.jar;lib\xalan-2.4.1.jar > org.apache.fop.fonts.apps.TTFReader -d DEBUG fonts\TIMESI.ttf > fonts\TIMESI.xml > > Then you build your configuration file userconfig.xml: > > <configuration> > <fonts> > <font metrics-file="fonts/TIMES.xml" kerning="yes" > embed-file="fonts/TIMES.ttf"> > <font-triplet name="TimesNewRoman" style="normal" weight="normal"/> > </font> > <font metrics-file="fonts/TIMESBD.xml" kerning="yes" > embed-file="fonts/TIMESBD.ttf"> > <font-triplet name="TimesNewRoman,Bold" style="normal" weight="normal"/> > </font> > <font metrics-file="fonts/TIMESBI.xml" kerning="yes" > embed-file="fonts/TIMESBI.ttf"> > <font-triplet name="TimesNewRoman,BoldItalic" style="normal" > weight="normal"/> > </font> > <font metrics-file="fonts/TIMESI.xml" kerning="yes" > embed-file="fonts/TIMESI.ttf"> > <font-triplet name="TimesNewRoman,Italic" style="normal" > weight="normal"/> > </font> > </fonts> > </configuration> > > Once you have done all this you can refer to your userconfig.xml in your > sitemap. > > Ttf (true type fonts) can be found on the net or perhaps you have them in > your operating system. > > Barara > > On 9 Oct, 2009, at 11:39 am, Laurent Medioni wrote: > > You refer to a D:/fop-fonts/config.xml in your sitemap ? >> Can you summarize what you are usingm what you have done so far and what >> you get at the end ? >> Thanks. >> >> ________________________________________ >> From: Rover Rock [mailto:[email protected]] >> Sent: jeudi, 8. octobre 2009 23:02 >> To: [email protected] >> Subject: Re: embedding fonts >> >> Ok, I see. >> >>> Are the fonts provided through your config file Unicode fonts ? >>> >> I use only the default install, i did not modify any config file and >> Unicode fonts settings. Where and what can i do?:) >> >>> + When you use fop elements (in your xml or in a xsl) how are the >>> <fo:root> parameters configured ? The Locale should be among them + the >>> default font, ‚Ķ." >>> >> I didnt configure <fo:root> parameters... >> >> ____________________________________________________________ >> >> ï This email and any files transmitted with it are CONFIDENTIAL and >> intended >> solely for the use of the individual or entity to which they are >> addressed. >> ï Any unauthorized copying, disclosure, or distribution of the material >> within >> this email is strictly forbidden. >> ï Any views or opinions presented within this e-mail are solely those of >> the >> author and do not necessarily represent those of Odyssey Financial >> Technologies SA unless otherwise specifically stated. >> ï An electronic message is not binding on its sender. Any message >> referring to >> a binding engagement must be confirmed in writing and duly signed. >> ï If you have received this email in error, please notify the sender >> immediately >> and delete the original. >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
