File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes Font embedding of Fop in unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Font embedding of Fop in unix" Watch "Font embedding of Fop in unix" New topic
Author

Font embedding of Fop in unix

priby mathew
Greenhorn

Joined: Jan 28, 2008
Posts: 25
Greetings to all,

I am trying to embed japanese font in fop (in unix machine). I am new to unix. I have done the font embedding in windows.But I have no idea about doing in unix.

Any help appreciated

Thanks
Priby
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41812
    
  62
Why do you think it would work differently on Unix than it does on Windows? Where are you stuck?


Ping & DNS - my free Android networking tools app
priby mathew
Greenhorn

Joined: Jan 28, 2008
Posts: 25
Hi Dittmer,

I used the following steps for japanese font embedding in fop (Windows)

-------------------------------------------
1)Insatllation of FOP
2)Insatllation of true type font or true type collection
3)Creating the font metrics file using the following 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 C:\WINDOWS\Fonts\MSMINCHO.ttf MSMINCHO.xml

4)Placing the font metrics file created using the above command in appropriate path and making corresponding modifications in the userconfig.xml which includes the path to the metrics file.
-----------------------------

Can I follow the above mentioned steps for unix ?If so,what should be the command for generating the metrics file in unix.

Thanks
priby
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41812
    
  62
Here's an example of the invocation on Unix:

priby mathew
Greenhorn

Joined: Jan 28, 2008
Posts: 25
Hi Dittmer,

Thanks for providing the command for generating the metrics file in unix.

Now I started with the font embedding of fop in unix.The first step i tried is to install the true type font. I got some information that for font embedding xfs should be there in the unix system.

But I couldn't find xfs under /etc/rc.d/init.d . Do I need to install xfs? If so,how can I do it?

Thanks
priby
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41812
    
  62
I doubt that anything in FOP requires a font server to be installed; ensuring that all required files are accessible should be sufficient.

For advice on installing Unix software you could ask in the Unix/Linux forum, or visit a dedicated forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Font embedding of Fop in unix