• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Font embedding of Fop in unix

 
priby mathew
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do you think it would work differently on Unix than it does on Windows? Where are you stuck?
 
priby mathew
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's an example of the invocation on Unix:

 
priby mathew
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic