[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Fonts and FOP
Hi, I am trying to add a font in FOP (BitStream Vera Sans, which comes with Fedora) so that I am use it in my titles. I have successfully generated the font matrix files (some variants like normal, bold, bold-italic and italic version) using "TTFReader". My font configuration file is this: ############################################### <configuration> <fonts> <fonts metrics-file="/home/deepak/documents/docbooks/thesis/xmlfonts/vera-sans.xml" kerning="yes" embed-file="/home/deepak/documents/docbooks/thesis/xmlfonts/Vera.ttf"> <font-triplet name="Vera" style="normal" weight="normal"/> <fonts metrics-file="/home/deepak/documents/docbooks/thesis/xmlfonts/vera-sans-bold.xml" kerning="yes" embed-file="/home/deepak/documents/docbooks/thesis/xmlfonts/VeraBd.ttf"> <font-triplet name="Vera" style="normal" weight="bold"/> <fonts metrics-file="/home/deepak/documents/docbooks/thesis/xmlfonts/vera-sans-bold-italic.xml" kerning="yes" embed-file="/home/deepak/documents/docbooks/thesis/xmlfonts/VeraBI.ttf"> <font-triplet name="Vera" style="italic" weight="bold"/> <fonts metrics-file="/home/deepak/documents/docbooks/thesis/xmlfonts/vera-sans-italic.xml" kerning="yes" embed-file="/home/deepak/documents/docbooks/thesis/xmlfonts/VeraIT.ttf"> <font-triplet name="Vera" style="italic" weight="normal"/> </fonts> </configuration> ################################################# Now, trying of generate the PDF with -c option gives me following error: ################################### $ fop.sh -c /home/deepak/documents/docbooks/thesis/xmlfonts/fop_new_font_add_config.xml \ -fo saxbook.fo \ -pdf saxbook.pdf $ Making portrait pages on USletter paper (8.5inx11in) [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser [INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser Exception in thread "main" java.lang.NullPointerException at org.apache.fop.configuration.ConfigurationParser.startElement(ConfigurationParser.java:187) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.fop.configuration.ConfigurationReader.start(ConfigurationReader.java:114) at org.apache.fop.apps.Options.loadUserconfiguration(Options.java:220) at org.apache.fop.apps.Options.loadUserconfiguration(Options.java:204) at org.apache.fop.apps.Options.setCommandLineOptions(Options.java:116) at org.apache.fop.apps.CommandLineStarter.<init>(CommandLineStarter.java:75) at org.apache.fop.apps.CommandLineOptions.getStarter(CommandLineOptions.java:522) at org.apache.fop.apps.Fop.main(Fop.java:61) ############################## Any suggestions? By the way I am using customization layer but haven't modified yet to change the title fonts. Thanks in advance. Deepak K. Shrestha __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]