How to get Character Map of a TTF Font?

Going GNU

TTF fonts are available with different character maps.

Tamil has tons of TTF fonts with different maps.

For http://FreeTamilEbooks.com project, we are receiving ebooks in Tamil

with various fonts and with various encoding.

Converting them into unicode is a tough project.

There is no open source font converter for Tamil that works well.

Though there are few online converters available, they loss all the formatting of the content.

We have to create a Tamil Font converter.

As the first step, I am exploring open-tamil library, which gives TSCII to unicode conversion utilities.

https://github.com/arcturusannamalai/open-tamil

https://github.com/arcturusannamalai/open-tamil/tree/master/tamil

Exploring the fonts now.

First step is to generate the character map of a file.

The utility named “ttx” is helping for this.

Install this in ubuntu.

sudo apt-get install fonttools.

To get a charecter map of a TTF font, use the following command.

ttx -t cmap myfont.ttf

this will give a xml file in the…

View original post 227 more words

Leave a comment