Thank you for anyadditional insight you can provide.
Unintended recipients are prohibited from retaining, copying, distributing, disclosing or otherwise using any information contained in this message or its attachments for any purpose and will be held legally responsible for Please note that starting with FOP 0.95 you can omit the metrics-url attribute. The >>
Are you sure of your metrics filename? The URL I'm setting as baseURL and fontBaseURL is jar:file:/path/CMBilling-0.0.1-SNAPSHOT.jar!/layouts/LIVINGNET_2008_06_05/ This is the URL I'm getting from this.getClass().getClassLoader().getResource(baseURLString); for the argument "layouts/LIVINGNET_2008_06_05/", so I think that this should be a I have also posted a more complete portion of my config file:
Including images works, but the fonts causing the problem already described. Kind regards, Thomas J.Pietschmann Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Embedding fonts Thomas S. Note thatboth the metrics file and the ttf file are in the same directory as theconfig file:
J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] Thomas S. I use Classloader.getSystemResource() to get a URL to a directory containing the resources used within the XSL-FO. Both still result in > the null pointer exception when I run FOP. http://apache-fop.1065347.n5.nabble.com/Embedding-fonts-td12908.html Thank you for anyadditional insight you can provide.I have set kerning="yes" and embed-url="ARIAL.TTF"--View this message in context: http://www.nabble.com/Cannot-load-font%3A-failed-to-create-Source-from-metrics-file-tf4132449.html#a11764572Sent from the FOP - Users mailing list archive at Nabble.com.
You signed out in another tab or window. Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Embedding fonts from JAR: Bug in FOURIResolver.resolve() ? You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" You can simply do this: > > >
I have spent hours on it without any > > success. > > > > Thanks > > > > Regards > > Ashish Baijal > > BTW, for FOP-specific support http://marc.info/?t=118522520900003&r=1&w=2 mblee Re: Cannot load font: failed to create Source from... If you are not an intended recipient of the original sender, please immediately delete this e-mail message and any attachments, including any copies of same, and inform the sender of the Currently I am using FOP 0.93, attempting to use the Arial font on some of my fo:blocks.
Note that both the metrics file and the ttf file are in the same directory as the config file:
mblee Cannot load font: failed to create Source from metrics fil... I attempted your suggestion and gave it an absolute path, but I still get the same result. But I tried it with the suggested URL, unfortunately with the same error: 2008-07-09 09:45:06,928 [btpool0-0] ERROR org.apache.fop.fo.FOTreeBuilder.fatalError(FOTreeBuilder.java:229) - javax.xml.transform.TransformerException: java.lang.RuntimeException: Cannot load font: failed to create Source from metrics file http://ecoflashapps.com/cannot-load/cannot-load-any-source-filter.html Try jar:file:///var/lib/...
Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Embedding fonts J.Pietschmann wrote Which FOP version are you using? It just makes the > stuff more complicated than necessary. > > > The autodetect feature loads all the fonts but substitute with "any" > before > > displaying. > > Thomas S.
I followed the instructions on the Apache FOP site on how to set up the configuration file, and here's a snippet within my pdf renderer. On > > windows I found that only the file created with -enc works. Loran Kary 2007-07-23 21:48:17 UTC PermalinkRaw Message Are you providing an "embed-url" path name for the font? W3C home > Mailing lists > Public > [email protected] > December 2008 Re: Fonts in Linux environment This message: [ Message body ] [ Respond ] [ More options ] Related
Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Embedding fonts Hi, I have a problem with embedding fonts while running Obviously FOP can read the configuration from the jar, it also doesn't complain while starting: 2008-07-02 10:04:04,651 DEBUG org.apache.fop.render.PrintRendererConfigurator (PrintRendererConfigurator.java:123) - Starting font configuration... 2008-07-02 10:04:04,656 DEBUG org.apache.fop.render.PrintRendererConfigurator (PrintRendererConfigurator.java:318) - When I run FOP, I get the following exception. >> >> SEVERE: Exception >> >> java.lang.RuntimeException: Cannot load font: failed to >> create Source from metrics file SY______.xml >> >> It http://ecoflashapps.com/cannot-load/cannot-load-source-filter.html Thomas S.
Ok, now I stepped down into the code of FOP 0.94... I'm using 0.94, but I tried this also with 0.95b, which gives me the same result! root ( > > http://www.w3.org/1999/XSL/Format) > > Exception in thread "pool-1-thread-12" > > > com.marsh.itg.ddeepa.services.contract.bobject.exception.LogicExecutionException: > > org.xml.sax.SAXException: Mismatch: page-sequence ( > > http://www.w3.org/1999/XSL/Format) vs. Substituting with 'any,normal,400'.
Who can I talk to for getting around this problem? « Return to FOP - Users | 1 view|%1 views Loading... I generated xml > files with following command: > > java -cp > build/fop.jar:lib/avalon-framework-4.2.0.jar:lib/xml-apis-1.3.04.jar:lib/xercesImpl-2.7.1.jar:lib/xalan-2.7.0.jar:lib/commons-logging-1.0.4.jar:lib/commons-io-1.3.1.jar:lib/xmlgraphics-commons-1.3.1.jar:lib/serializer-2.7.0.jar > org.apache.fop.fonts.apps.TTFReader /test/ParisineOffice-Regular.ttf > /test/ParisineOffice-Regular.xml > > Xml files are generating. ~500Ko per files. > > I'm For example,
Lee, Betty Reply via email to Search the site The Mail Archive home fop-users - all messages fop-users - about the list Expand Previous message Next message The Mail Archive home Terms Privacy Security Status Help You can't perform that action at this time. This seems to be caused by a problem with reading the font metrics from a jar file. You signed in with another tab or window.
Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Embedding fonts In reply to this post by J.Pietschmann J.Pietschmann wrote I followed the instructions on the Apache FOP site on how to set up the configuration file, and here's a snippet within my pdf renderer. root ( > > http://www.w3.org/1999/XSL/Format) > > at > > > com..blogic.document.utils.FopDocumentRenderSystem.renderDocument(FopDocumentRenderSystem.java:164) > > at > > > com..blogic.document.utils.RenderSystemDocumentRenderer$RenderSystemInputStreamProvider$1.run(RenderSystemDocumentRenderer.java:75) > > at > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) > > at > > and check whether this helps.
All rights reserved. I'd appreciate any additional ideas. Thank you for anyadditional insight you can provide.Let me post a more detailed config file: Thank you for your cooperation. 6 Replies 7 Views Switch to linear view Disable enhanced parsing Permalink to this page Thread Navigation mblee 2007-07-23 21:10:38 UTC Loran Kary 2007-07-23 21:48:17 UTC
Thank you for your cooperation. 6 Replies 7 Views Switch to linear view Disable enhanced parsing Permalink to this page Thread Navigation mblee 2007-07-23 21:10:38 UTC Loran Kary 2007-07-23 21:48:17 UTC