[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[g-i] Updated script for analyzing ttf files



Hi all,

On Fri, Feb 10, 2006 at 02:03:49AM +0100,  wrote:
> svn://svn.debian.org/svn/d-i/trunk/scripts/g-i/unicode_map.sh
> 
> which creates a table with all the glyphs used and tells which font(s)
> contain the glyph.

I just committed a new version which can generate both txt and XML tables.
To generate the XML table (and associated CSS file) just run this:

time FORMAT=xml sh unicode_map.sh /sid/home/zino/gtk-official/installer/build/tmp/gtk-miniiso/tree/usr/share/fonts/truetype/

FreeSansBoldOblique.ttf: 790 glyphs   [74588 bytes]
FreeSansBold.ttf: 837 glyphs   [71964 bytes]
FreeSansOblique.ttf: 856 glyphs   [79056 bytes]
FreeSans.ttf: 1352 glyphs   [112796 bytes]
ae_AlMohanad.ttf: 446 glyphs   [120920 bytes]
ja.ttf: 733 glyphs   [146236 bytes]
ko.ttf: 701 glyphs   [119164 bytes]
zh.ttf: 1814 glyphs   [1176716 bytes]
MuktiNarrow_11-08-2005.ttf: 198 glyphs   [187196 bytes]
DejaVuSans-Bold.ttf: 858 glyphs   [119584 bytes]
DejaVuSans-BoldOblique.ttf: 858 glyphs   [129360 bytes]
DejaVuSans-Oblique.ttf: 858 glyphs   [122496 bytes]
DejaVuSans.ttf: 858 glyphs   [135900 bytes]
Gargi_1.7.ttf: 238 glyphs   [74260 bytes]
chandas1-1.ttf: 930 glyphs   [2581648 bytes]
lohit_hi.ttf: 163 glyphs   [159812 bytes]
Saab.ttf: 139 glyphs   [114092 bytes]
lohit_pa.ttf: 132 glyphs   [58240 bytes]

Font files: 18
Total size: 5584028 bytes
Unique Glyphs: 4824
Bytes per glyph: 1157

Generating unicode map file...

real    2m41.457s
user    1m37.675s
sys     1m0.600s

-----

you'll end up with a "map.xml" file and a "unicode_map.css"; I uploaded both 
so that you can see how it looks like ([1]). The file is about 2Mb, so make sure
you can deal with it before clicking :)

I know almost nothing about XML/CSS/HTML and I'll ask help for adding a top frame
with the name of the columns and other nicities (also better colors): if you want 
to help with that just let me know.

ciao,
Davide

[1] http://www.webalice.it/zinosat/map1.xml

Attachment: signature.asc
Description: Digital signature


Reply to: