It is currently Fri May 18, 2012 3:50 pm


Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Creating the font metrics file for FOP
PostPosted: Tue Sep 21, 2010 3:54 pm 
Site Admin

Joined: Sat Aug 02, 2008 8:00 am
Posts: 147
When using FOP for generating PDF documents using a custom font you need to provide what is called a metrics file
the metrics file contains the measurements information for the designated font like the height of the characters and so on

to create this file you can use the TTFReader tool provided with FOP as follows

Code:
java -cp build\fop.jar;lib\avalon-framework.jar;lib\commons-logging.jar;lib\commons-io.jar
          org.apache.fop.fonts.apps.TTFReader [options]
          C:\myfonts\cmr10.ttf ttfcm.xml


Make sure that you have java installed on your machine first
run this command from the root of the FOP folder(Where you expanded the FOP zip file)
ttfcm.xml is the generated metrics file

_________________

Muhammad Safwat Fuad
The Java Code Admin
Java Technical Lead.
Mobile: +2010-2942-538
Email:mtv134@yahoo.com


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Registered users: Elungartlinia, h5orkaba8, impamiSmevy, MSN [Bot], seerterne


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
twilightBB Style by Daniel St. Jules of Gamexe.net

[
SEO MOD © 2007 StarTrekGuide ]