[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-user
Subject:    Re: TTRReader works, but what about PFMReader?
From:       Teus Benschop <teus () teusbenschop ! nl>
Date:       2005-12-23 8:43:41
Message-ID: 43ABB8BD.40603 () teusbenschop ! nl
[Download RAW message or body]

Thank you Jeremias, with the new instructions you have given it now 
works perfectly!

Yes, I did have some of the paths wrong, I have to admit...

Thanks again,

Teus.

Jeremias Maerki wrote:
> Teus, I think you're doing some dangerous things here. Dangerous in the
> sense of mixing things that should not be mixed. You seem to have copied
> libraries from FOP into your JRE installation (or you have the absolute
> paths simply wrong). Stuff like that can have nasty side-effects if you
> don't know what you're doing.
> 
> Please stick very closely to the instructions given in
> http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#type1-metrics.
> 
> You're obviously using FOP 0.20.5 and JRE 1.5.0. Ok, so you don't need
> the xml-apis.jar, xercesImpl.jar and the xalan.jar in the classpath
> because all that is already provided by the JRE. That's what the "Note"
> box says on the above page.
> 
> I think the reason that you got this very strange error message is
> because of the quotes you used. They are wrong and, in your case,
> unnecessary. Without having a Unix system to test this, try this:
> 
> cd /home/teus/linux-programs/fop-0.20.5
> $JAVAHOME/bin/java -cp build/fop.jar:lib/avalon-framework-cvs-20020806.jar \
> org.apache.fop.fonts.apps.PFMReader /usr/share/fonts/default/ghostscript/fkarw.pfm \
> /home/teus/fop/metrics.xml 
> You see that the "Note" box on the "Fonts" page also says that "The
> classpath in the above example has been simplified for readability. You
> will have to adjust the classpath to the names of the actual JAR files
> in the lib directory." That means that "avalon-framework.jar" becomes
> "avalon-framework-cvs-20020806.jar" for the official 0.20.5 release. The
> version numbers in the filename can change often. That's why we don't
> want to simply add them in the general documentation.
> 
> Well, I hope you'll manage to get it to work now. Good luck!
> 
> On 23.12.2005 07:36:43 Teus Benschop wrote:
> 
> > Thanks to the help of other, TTFReader works, but PFMReader still gives 
> > an error.
> > 
> > Here's the script bash:
> > ---
> > export JAVA_HOME=/home/teus/linux-programs/jre1.5.0_04
> > 
> > cd /home/teus/linux-programs/fop-0.20.5
> > /home/teus/linux-programs/jre1.5.0_04/bin/java -cp build/fop.jar 
> > org.apache.fop.fonts.apps.TTFReader 
> > /usr/share/fonts/bitstream-vera/Vera.ttf /home/teus/fop/metrics.xml
> > 
> > cd /home/teus/linux-programs/fop-0.20.5
> > /home/teus/linux-programs/jre1.5.0_04/bin/java -cp 
> > "/home/teus/linux-programs/jre1.5.0_04/build/fop.jar:/home/teus/linux-programs/jre \
> > 1.5.0_04/lib/avalon-framework.jar:/home/teus/linux-programs/jre1.5.0_04/lib/xml-ap \
> > is.jar:/home/teus/linux-programs/jre1.5.0_04/lib/xercesImpl.jar:/home/teus/linux-programs/jre1.5.0_04/lib/xalan.jar \
> >  org.apache.fop.fonts.apps.PFMReader" 
> > /usr/share/fonts/default/ghostscript/fkarw.pfm /home/teus/fop/metrics.xml
> > 
> > ---
> > And here's the output
> > TTF Reader v1.1.1
> > 
> > Reading /usr/share/fonts/bitstream-vera/Vera.ttf...
> > 
> > Number of glyphs in font: 268
> > Creating xml font file...
> > 
> > Creating CID encoded metrics
> > Writing xml font file /home/teus/fop/metrics.xml...
> > 
> > This font contains no embedding license restrictions
> > Exception in thread "main" java.lang.NoClassDefFoundError: 
> > /usr/share/fonts/default/ghostscript/fkarw/pfm
> > ---
> > It shows TTFReader doin it's job, but PFMReader gives an exception.
> > 
> > How to proceed from here?
> > 
> > Thanks,
> > 
> > Teuis.
> > 
> 
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 
> 


[Attachment #3 (text/html)]

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you Jeremias, with the new instructions you have given it now
works perfectly!<br>
<br>
Yes, I did have some of the paths wrong, I have to admit...<br>
<br>
Thanks again,<br>
<br>
Teus.<br>
<br>
Jeremias Maerki wrote:
<blockquote cite="mid20051223091128.5E03.DEV@jeremias-maerki.ch"
 type="cite">
  <pre wrap="">Teus, I think you're doing some dangerous things here. Dangerous in \
the sense of mixing things that should not be mixed. You seem to have copied
libraries from FOP into your JRE installation (or you have the absolute
paths simply wrong). Stuff like that can have nasty side-effects if you
don't know what you're doing.

Please stick very closely to the instructions given in
<a class="moz-txt-link-freetext" \
href="http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#type1-metrics">http://xmlgraphics.apache.org/fop/0.20.5/fonts.html#type1-metrics</a>.


You're obviously using FOP 0.20.5 and JRE 1.5.0. Ok, so you don't need
the xml-apis.jar, xercesImpl.jar and the xalan.jar in the classpath
because all that is already provided by the JRE. That's what the "Note"
box says on the above page.

I think the reason that you got this very strange error message is
because of the quotes you used. They are wrong and, in your case,
unnecessary. Without having a Unix system to test this, try this:

cd /home/teus/linux-programs/fop-0.20.5
$JAVAHOME/bin/java -cp build/fop.jar:lib/avalon-framework-cvs-20020806.jar \
org.apache.fop.fonts.apps.PFMReader /usr/share/fonts/default/ghostscript/fkarw.pfm \
/home/teus/fop/metrics.xml

You see that the "Note" box on the "Fonts" page also says that "The
classpath in the above example has been simplified for readability. You
will have to adjust the classpath to the names of the actual JAR files
in the lib directory." That means that "avalon-framework.jar" becomes
"avalon-framework-cvs-20020806.jar" for the official 0.20.5 release. The
version numbers in the filename can change often. That's why we don't
want to simply add them in the general documentation.

Well, I hope you'll manage to get it to work now. Good luck!

On 23.12.2005 07:36:43 Teus Benschop wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thanks to the help of other, TTFReader works, but PFMReader still \
gives  an error.

Here's the script bash:
---
export JAVA_HOME=/home/teus/linux-programs/jre1.5.0_04

cd /home/teus/linux-programs/fop-0.20.5
/home/teus/linux-programs/jre1.5.0_04/bin/java -cp build/fop.jar 
org.apache.fop.fonts.apps.TTFReader 
/usr/share/fonts/bitstream-vera/Vera.ttf /home/teus/fop/metrics.xml

cd /home/teus/linux-programs/fop-0.20.5
/home/teus/linux-programs/jre1.5.0_04/bin/java -cp 
"/home/teus/linux-programs/jre1.5.0_04/build/fop.jar:/home/teus/linux-programs/jre1.5. \
0_04/lib/avalon-framework.jar:/home/teus/linux-programs/jre1.5.0_04/lib/xml-apis.jar:/ \
home/teus/linux-programs/jre1.5.0_04/lib/xercesImpl.jar:/home/teus/linux-programs/jre1.5.0_04/lib/xalan.jar \
 org.apache.fop.fonts.apps.PFMReader" 
/usr/share/fonts/default/ghostscript/fkarw.pfm /home/teus/fop/metrics.xml

---
And here's the output
TTF Reader v1.1.1

Reading /usr/share/fonts/bitstream-vera/Vera.ttf...

Number of glyphs in font: 268
Creating xml font file...

Creating CID encoded metrics
Writing xml font file /home/teus/fop/metrics.xml...

This font contains no embedding license restrictions
Exception in thread "main" java.lang.NoClassDefFoundError: 
/usr/share/fonts/default/ghostscript/fkarw/pfm
---
It shows TTFReader doin it's job, but PFMReader gives an exception.

How to proceed from here?

Thanks,

Teuis.
    </pre>
  </blockquote>
  <pre wrap=""><!---->


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" \
href="mailto:fop-users-unsubscribe@xmlgraphics.apache.org">fop-users-unsubscribe@xmlgraphics.apache.org</a>
 For additional commands, e-mail: <a class="moz-txt-link-abbreviated" \
href="mailto:fop-users-help@xmlgraphics.apache.org">fop-users-help@xmlgraphics.apache.org</a>




  </pre>
</blockquote>
</body>
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic