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: minikin_tests
Test: bit CtsGraphicsTestCases:.TypefaceTest
Change-Id: Ice845a1206e1c9da08ea20c7b56fde2e6ec8b673
(cherry picked from commit 0c943b002dfed4c19196a4d162737057f8ed5a56)
(cherry picked from commit dbe6bb0c2b612889c2b1a3e37a77b93683c76e03)
2 files changed
tree: 7fd2dfe27fb8241ad9ef610a37ece5e1d43188c4
  1. app/
  2. doc/
  3. include/
  4. libs/
  5. tests/
  6. tools/