[util] Add hb-ot-shape-closure tool
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 16 May 2012 03:53:18 +0000 (23:53 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 16 May 2012 03:53:18 +0000 (23:53 -0400)
commitc87b317f0eb118e67134e8e419a6d65e0fa40d30
tree107d6c963a85015d16104abb4f2dc87fe07245ed
parent45675e589e6ef9f81b2a4199cf33e3e7778433a8
[util] Add hb-ot-shape-closure tool

Computes all the glyphs that may be generated given a font and
set of Unicode characters.

The order of the Unicode characters is irrelevant.

Sample output:

behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf f
f f_f

behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf i
i

behdad:util 0$ ./hb-ot-shape-closure Doulos\ SIL\ Regular.ttf fi
f f_i f_f_i f_f i

behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf ب
uni0628 uni0628.init uni0628.medi uni0628.fina

behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf ا
uni0627 uni0627.fina

behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf با
uni0627 uni0627.fina uni0628 uni0628.init uni0628.medi uni0628.fina

behdad:util 0$ ./hb-ot-shape-closure DroidNaskh-Regular.ttf با --no-glyph-names
5 6 133 134 135 136
configure.ac
util/Makefile.am
util/hb-ot-shape-closure.cc [new file with mode: 0644]
util/options.hh