SkPDF: SkTypeface_FreeType ToUnicode table improvement.
authorhalcanary <halcanary@google.com>
Tue, 13 Sep 2016 15:08:38 +0000 (08:08 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 13 Sep 2016 15:08:38 +0000 (08:08 -0700)
commit5f1d0f61ea182829826d9d76cb85346d3e23305d
tree69e720980b78a12b26593c6dc0536c21b885486a
parent5718b2df4c4fbe61b437ed74a427cbb5e3e17118
SkPDF: SkTypeface_FreeType ToUnicode table improvement.

Currently the SkTypeface_FreeType::onGetAdvancedTypefaceMetrics
synthesized glyph to Unicode mapping returns the Unicode point
of the last character to map to the glyph. In practice it is
better to guess the first character to map to the glyph instead.

BUG=359065
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2329953003

Review-Url: https://codereview.chromium.org/2329953003
src/ports/SkFontHost_FreeType.cpp