SkFontMgr_FontConfigInterface create typeface from FontParameters.
authorbungeman <bungeman@google.com>
Thu, 1 Sep 2016 15:52:29 +0000 (08:52 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 1 Sep 2016 15:52:29 +0000 (08:52 -0700)
commit4bb029cd9f7c00ac146df1f4c66d1ac5c078b78b
tree4b14f1bd664ca9adafca2d09a3b7fd5f3cbb0c20
parentd0cd2ecf31bb49988bc8a7ff74ee05161c9538de
SkFontMgr_FontConfigInterface create typeface from FontParameters.

This implements
SkFontMgr_FontConfigInterface::onCreateFromStream(SkStreamAsset*, const FontParameters&)
and makes the changes needed to support it. This will allow Chromium to
create variation fonts from data.

BUG=skia:5697
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2296843002

Review-Url: https://codereview.chromium.org/2296843002
src/ports/SkFontConfigTypeface.h
src/ports/SkFontMgr_FontConfigInterface.cpp