[util] Default to "text" output format in hb-shape
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 21 Dec 2012 21:01:52 +0000 (16:01 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 21 Dec 2012 21:01:52 +0000 (16:01 -0500)
commit6bad092aa87bc3e6bbf0b9faf07693e6ebbe55f2
treeba70274a882e92781edb6bdf00009b0329942fc9
parent8b217f5ac54aa0dcbba2dd6d59aa89dde33e56c2
[util] Default to "text" output format in hb-shape

If you say:

  hb-shape font.ttf text --output-file out.txt

This was previously failing:

  Unknown output format `txt'; supported formats are: TEXT / JSON

Now we simply fallback to TEXT if no explicit format was requested.
util/hb-shape.cc
util/options.hh