summaryrefslogtreecommitdiffstats
path: root/libs/minikin/FontFamily.cpp
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2014-10-23 14:54:42 -0700
committerPrashant Malani <pmalani@google.com>2014-10-23 23:31:42 +0000
commit5f11abd31fa8cfa723f54bd1c98ce4e27e7d3c77 (patch)
treed0439bb7aba8773b978f0d89cdb2e74d1863dd3e /libs/minikin/FontFamily.cpp
parentd5804e3937a961736e5cef0e8a70eacf91ee00bb (diff)
downloadandroid_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 'libs/minikin/FontFamily.cpp')
0 files changed, 0 insertions, 0 deletions