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.
Test: bit CtsGraphicsTestCases:.TypefaceTest
(cherry picked from commit 0c943b002dfed4c19196a4d162737057f8ed5a56)
(cherry picked from commit dbe6bb0c2b612889c2b1a3e37a77b93683c76e03)
2 files changed