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 90a9b2e8f280d5dd4bbe4389489e7d10c0d25765)
1 file changed
tree: 94f8afcf7e2aa1a3ee48b61b60aa0eeb6cedbb41
  1. app/
  2. doc/
  3. include/
  4. libs/
  5. sample/
  6. tests/
  7. tools/