Verbose fail when something is wrong with hb-shape/hb-view input font file (#1059)
authorEbrahim Byagowi <ebrahim@gnu.org>
Sun, 17 Jun 2018 12:34:55 +0000 (17:04 +0430)
committerGitHub <noreply@github.com>
Sun, 17 Jun 2018 12:34:55 +0000 (17:04 +0430)
commitc53697d3f2a3fae8b68ec4c5146c7000a07e0963
tree09c97a579dcd761ee5f00e6d02b14f24be0dcbac
parentaa0c5df4199ef4e96df2b856c8f629e49fdd5120
Verbose fail when something is wrong with hb-shape/hb-view input font file (#1059)

This checks if the blob isn't empty and uses `hb_face_count`
to see if the font file passes the simple font file sanitization
so can detect if the input is actually a font and checks also
whether input font-index is out of range.
util/options.cc