Reject unsorted cmap entries. DO NOT MERGE

addRange assumes the passing ranges are sorted in ascending order which
is a part of OpenType spec, but bad fonts can pass arbitrary ranges.
Now, addRange rejects invalid input and stop using such bad fonts.

Bug: 32178311
Test: mmma -j1024 cts/tests/tests/graphics/
      adb install -r $OUT/data/app/CtsGraphicsTestCases/CtsGraphicsTestCases.apk
      adb shell am instrument -w -e class
Change-Id: Ice845a1206e1c9da08ea20c7b56fde2e6ec8b673
(cherry picked from commit 66a7640f69b91fcf5de70c76d5f16e63f0803f29)
1 file changed
tree: 57f6aa78be7e72d818044201298f448d70137d7f
  1. app/
  2. doc/
  3. include/
  4. libs/
  5. sample/
  6. tools/