diff options
author | Raph Levien <raph@google.com> | 2014-10-23 14:54:42 -0700 |
---|---|---|
committer | Prashant Malani <pmalani@google.com> | 2014-10-23 23:31:42 +0000 |
commit | 5f11abd31fa8cfa723f54bd1c98ce4e27e7d3c77 (patch) | |
tree | d0439bb7aba8773b978f0d89cdb2e74d1863dd3e /include/minikin/FontCollection.h | |
parent | d5804e3937a961736e5cef0e8a70eacf91ee00bb (diff) | |
download | android_frameworks_minikin-5f11abd31fa8cfa723f54bd1c98ce4e27e7d3c77.tar.gz android_frameworks_minikin-5f11abd31fa8cfa723f54bd1c98ce4e27e7d3c77.tar.bz2 android_frameworks_minikin-5f11abd31fa8cfa723f54bd1c98ce4e27e7d3c77.zip |
Silently ignore invalid rangeOffset values
Some fonts contain a cmap segment for char 0xffff that contains an
invalid rangeOffset. This was rejected by the existing code, which
means the font is considered to have empty Unicode coverage. This patch
just discards the invalid segment (consistent with OpenType Sanitizer),
making the custom font display.
Bug: 18106256
Change-Id: Icc8616a3030f80e62db906332be64d434ae72ea2
Diffstat (limited to 'include/minikin/FontCollection.h')
0 files changed, 0 insertions, 0 deletions