Since metrics-url must be removed, what happens when the fonts in pdf must be in reference and not embedded.Then the will complain that nor embed-url neither metrics-url attribute exists.
Jeremias Maerki-2 wrote: > > Since you're on FOP 0.94, please try removing the metrics-url attributes > from your elements. The font metrics files shouldn't be necessary > anymore for almost all cases since 0.94. > > Jeremias Maerki > > > > On 07.11.2007 11:20:58 juanita wrote: >> >> I am using fop 0.94 and I want to generate a pdf with Times New Roman. >> In my configuration file I have: >> >> <font-triplet name="times" style="normal" weight="normal"/> >> >> >> <font-triplet name="times" style="normal" weight="bold"/> >> >> >> <font-triplet name="times" style="italic" weight="normal"/> >> >> >> <font-triplet name="times" style="italic" weight="bold"/> >> >> The metrics files (xml) are taken from the fop trunk and the ttf files >> are >> the ones I use to have for >> fop. >> However I am getting the following exception: >> java.lang.RuntimeException: Malformed width in metric file: null >> at org.apache.fop.fonts.LazyFont.load(LazyFont.java:130) >> at org.apache.fop.fonts.LazyFont.getAscender(LazyFont.java:20 >> at org.apache.fop.fonts.Font.getAscender(Font.java:83) >> I think that this is caused when fop is trying to read the 'wdt' >> attribute >> from the xml file which indeed >> does not exist. This attribute existed in the previous metric xml file I >> had(for fop 0.93) however when I am using that xml file I have the >> following >> exception: >> java.lang.RuntimeException: Missing metrics-version attribute - please >> regenerate the font metrics file with a more recent version of FOP >> at org.apache.fop.fonts.LazyFont.load(LazyFont.java:130) >> >> Any clues? >> >> Thank you... >> -- >> View this message in context: >> http://www.nabble.com/Problem-with-Times-New-Roman-and-fop-0.94-tf4763781.html#a13624523 >> Sent from the FOP - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Problem-with-Times-New-Roman-and-fop-0.94-tf4763781.html#a13626362 Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]