Home > Cannot Load > Cannot Load Font Failed To Create Source From Metrics File

Cannot Load Font Failed To Create Source From Metrics File

I use Classloader.getSystemResource() to get a URL to a directory containing the resources used within the XSL-FO. This list only All OASIS listsHelp: OASIS Mailing Lists Help | MarkMail Helpdocbook-apps message [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] I got the following error [2008-12-02 14:07:23,467] [pool-1-thread-1] ERROR LazyFont - Failed to read font metrics file null java.io.IOException: Cannot load font: failed to create InputStream from Source for font file Which FOP version are you using? > java.lang.RuntimeException: Cannot load font: failed to create Source from > metrics file > jar:file:/var/lib/ [snip] The embedded file URL ist malformed, maybe the recursive Source

Now some more information. and check whether this helps. The >> in the configuration file was correct, so I don't >> know why it couldn't load the files. All rights reserved. https://www.oxygenxml.com/forum/topic2425.html

The XML font metrics step is no longer required. Loran Kary 2007-07-26 01:54:06 UTC PermalinkRaw Message Perhaps your path needs to be a well-formed URL.Post by mbleeHello Loran, thank you so much for your quick response.I have provided the embed-url I would be very grateful, if someone has an idea to get this working!

Currently my is set to the current directly, by being set .. J.Pietschmann wrote > java.lang.RuntimeException: Cannot load font: failed to create Source from > metrics file > jar:file:/var/lib/ [snip] The embedded file URL ist malformed, maybe the recursive URL resolver doesn't I'm using 0.94, but I tried this also with 0.95b, which gives me the same result! Thanks, Vincent > -----Original Message----- > From: Mauritz Jeanson [mailto:mj@johanneberg.com] > Sent: Saturday, March 10, 2007 2:42 AM > To: Jeff Powanda; docbook-apps@lists.oasis-open.org > Subject: RE: [docbook-apps] FOP 0.93: Cannot load

Loran Kary 2007-07-23 21:48:17 UTC PermalinkRaw Message Are you providing an "embed-url" path name for the font? However, I get the following NullPointerException: SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) at org.apache.fop.cli.Main.startFOP(Main.java:160) at org.apache.fop.cli.Main.main(Main.java:191) I've attached the config file I'm using and the resulting FO file I'm trying Try jar:file:///var/lib/... http://apache-fop.1065347.n5.nabble.com/Embedding-fonts-td12908.html mblee Re: Cannot load font: failed to create Source from...

Reload to refresh your session. 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 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Embedding fonts from JAR: Bug in FOURIResolver.resolve() ? This directory is used both as baseURL and as fontBaseURL.

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 http://marc.info/?t=118522520900003&r=1&w=2 Kind regards, Thomas J.Pietschmann Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Embedding fonts Thomas S. No font URIs available."); } this.realFont = FontLoader.loadFont(this.fontEmbedPath, this.subFontName, this.embedded, this.encodingMode, this.useKerning, this.resolver); } if (this.realFont instanceof FontDescriptor) { this.realFontDescriptor = (FontDescriptor) this.realFont; } } catch (final FOPException fopex) { log.error("Failed Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Embedding fonts J.Pietschmann wrote Which FOP version are you using?

J.Pietschmann --------------------------------------------------------------------- To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] Thomas S. this contact form See the NOTICE file distributed with this work for additional information regarding copyright ownership. You signed out in another tab or window. mblee Cannot load font: failed to create Source from metrics fil...

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 Both my .ttf and .xmlfiles are in the same location as the config file. Both still result in > the null pointer exception when I run FOP. http://scriptkeeper.net/cannot-load/cannot-load-any-source-filter.html Free forum by Nabble Edit this page OASIS Mailing List ArchivesView the OASIS mailing list archive belowor browse/search using MarkMail.

Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 1 Star 0 Fork 0 Guronzan/Apache-Fop Code Issues 0 Pull requests 0 Projects I have spent hours on it without any > > success. > > > > Thanks > > > > Regards > > Ashish Baijal > > BTW, for FOP-specific support 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

Maybe that's your mistake? > > BTW, with FOP 0.95 you don't need to create XML font metrics files > anymore.

It just makes the > stuff more complicated than necessary. > > > The autodetect feature loads all the fonts but substitute with "any" > before > > displaying. > > Terms Privacy Security Status Help You can't perform that action at this time. and check whether this helps. If it is a DocBook or TEI transformation did you apply the procedure specified in the article available on our Documentation page?

On > > windows I found that only the file created with -enc works. Font is Parisine Office. Try jar:file:///var/lib/... Check This Out On 16.02.2010 12:35:14 philippe voncken wrote: > Hello, > > I want loading a font with fop.

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. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the 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 Do you also have the problem for other metrics files?

I attempted your suggestion and gave it an absolute path, but I still get the same result. Can you post your config file and, if possible, the FO file resulting from the XSLT transformation (or a stripped-down version showing the problem)?