• R
    Silently ignore invalid rangeOffset values · 5f11abd3
    Raph Levien 提交于
    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
    5f11abd3
CmapCoverage.cpp 6.5 KB