Generate font-metrics for True Type Fonts

Just a quick post on how to generate a Font-metrics file for a ttf available with you. The other day I was hitting FOP, I searched throughout the web googled around,checked out all the links in the search results that my dear friend Google thrown at me.

They talk of using the F.O.P. jar and a couple other jars to do this, but I couldn’t get it working, so finally I thought to look into my favorite O.S. (Ubuntu – I love it!!!) ,and yeah there’s an fop package available with a utility to do this.

All you need to do is :

sudo apt-get install fop

and then :

fop-ttfreader 'ttf file' 'name of the metrics file'

these two magical commands help you out in a jiff, if you are on Linux. 🙂


About Prince Sewani

Technology enthusiast, philosopher, keen observer and a perfect communicator, I never hold myself back from what I want to say, I just wait and formulate it with right words. P.S. : Whatever is posted on this blog, shall not be copied. Should it be found that way, I'll be forced to take legal actions.
This entry was posted in Technology-miscs, Ubuntu. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s