Re: # problem

2005-12-26 Thread Teus Benschop




You are lucky, because somebody just mailed the below information to me.

Teus.


I have figured out how to get FOP to use a Unicode font so it will
include the Unicode characters.

I can do it manually by telling it to load a user configuration
file.  I've attached the user config file which works for using the
Charis SIL font family. You also have to create font metrics files for
your fonts with the TTF reader utility, as described on the FOP web
site

http://xmlgraphics.apache.org/fop/0.20.5/fonts.html

















  









 
 

 
 

 
 

 


 
 
 
 












To make FOP read the userconfig.xml file,  on the command line I
have to specify the -c option followed by the userconfig file name. 




Sheraz Bashir wrote:

  
  
  
  
  Hi everyone,
   
  Some Unicode characters
appear as ‘# ‘ in pdf.
My guess is that probably FOP does not find the character mapping of
that
character which causes FOP to render # instead of that character. For
example,
the square root symbol appears as # in output pdf.
   
  Is there a way in which
we can manually add these mappings
in FOP?
   
  Thanks,
  babz
  





Re: TTRReader works, but what about PFMReader?

2005-12-23 Thread Teus Benschop




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/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.

  
  


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  





TTRReader works, but what about PFMReader?

2005-12-22 Thread Teus Benschop
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.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE : Trying to use TTFReader

2005-12-22 Thread Teus Benschop




Thank you, Yoann, that solved everything, and it's working well.

Tartu Yoann wrote:

  If your are in a unix like environment, you should use : 
 - '/' separator instead of '\' in the directory definition
 - ':' separator instead of ';' in the classpath definition


I think you should have :

/home/joe/jre1.5.0_04/bin/java -cp 
"./build/fop.jar:./lib/avalon-framework.jar:./lib/xml-apis.jar:./lib/xercesImpl.jar:./lib/xalan.jar" 
org.apache.fop.fonts.apps.TTFReader /usr/share/fonts/bitstream-vera/Vera.ttf metrics.xml

Be sure to have the jars in the directories you specify



Let's try.


Yoann.




-Message d'origine-
De : Teus Benschop [mailto:[EMAIL PROTECTED]] 
Envoyé : jeudi 22 décembre 2005 17:23
À : fop-users@xmlgraphics.apache.org
Objet : Re: Trying to use TTFReader


I've got the same problem, using fop 0.20.5.

 From within the fop root directory, I issue this command:

/home/joe/jre1.5.0_04/bin/java -cp 
"build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;lib\xercesImpl.jar;lib\xalan.jar" 
org.apache.fop.fonts.apps.TTFReader 
/usr/share/fonts/bitstream-vera/Vera.ttf metrics.xml

It gives this error:

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/fop/fonts/apps/TTFReader

Is there any solution to this problem?

Thank you,

Teus.


J.Pietschmann wrote:
  
  
Manuel Strehl wrote:


  I was trying to use the TTFReader to render a TTF font to a metric
file. I used the command provided in the documentary (Win XP, 
Java1.5.0, FOP 0.20 and 0.90, command: "

java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
lib\xercesImpl.jar;lib\xalan.jar
  org.apache.fop.fonts.apps.TTFReader [options]
C:\myfonts\cmr10.ttf ttfcm.xml
  

It seems the command line is missing a class path entry for the 
commons logging jar. You should find the jar in the lib directory.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  





Re: Trying to use TTFReader

2005-12-22 Thread Teus Benschop

I've got the same problem, using fop 0.20.5.

From within the fop root directory, I issue this command:

/home/joe/jre1.5.0_04/bin/java -cp 
"build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;lib\xercesImpl.jar;lib\xalan.jar" 
org.apache.fop.fonts.apps.TTFReader 
/usr/share/fonts/bitstream-vera/Vera.ttf metrics.xml


It gives this error:

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/fop/fonts/apps/TTFReader


Is there any solution to this problem?

Thank you,

Teus.


J.Pietschmann wrote:

Manuel Strehl wrote:
I was trying to use the TTFReader to render a TTF font to a metric 
file. I used the command provided in the documentary (Win XP, 
Java1.5.0, FOP 0.20 and 0.90, command: "


java -cp build\fop.jar;lib\avalon-framework.jar;lib\xml-apis.jar;
lib\xercesImpl.jar;lib\xalan.jar
  org.apache.fop.fonts.apps.TTFReader [options]
C:\myfonts\cmr10.ttf ttfcm.xml


It seems the command line is missing a class path entry for the
commons logging jar. You should find the jar in the lib directory.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Building fop trunk

2005-08-22 Thread Teus Benschop




Thanks, Manuel, will try.

Teus.

Manuel Mall wrote:

  Teus,

assuming you have ant installed just running
  ant
in the directory you have checked out fop trunk to should suffice.

Manuel
On Tue, 23 Aug 2005 08:55 am, Teus Benschop wrote:
  
  
Hi,

Http://xml.apache.org/fop/compiling.html describes how to build FOP
from source code and it refers to a script called build.sh. When
downloading all the source code using svn co
http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk, it appears the
script build.sh is not there. How to proceed?

Teus Benschop


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]

  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  





Building fop trunk

2005-08-22 Thread Teus Benschop

Hi,

Http://xml.apache.org/fop/compiling.html describes how to build FOP from 
source code and it refers to a script called build.sh. When downloading 
all the source code using svn co 
http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk, it appears the 
script build.sh is not there. How to proceed?


Teus Benschop


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]