diff options
author | bungeman <bungeman@google.com> | 2016-01-21 14:17:47 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-21 14:17:47 -0800 |
commit | f6c7107d0385cc2b556802354b93b7dcff61570d (patch) | |
tree | 6acc6e0ae4621e2bbc6deb43c3198a73c5d56433 /src/ports/SkFontHost_FreeType_common.h | |
parent | 27a6e86fb17fce7ce962b9080eae36926e87d568 (diff) |
Expose API for gx font variation axes.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1590223003
Review URL: https://codereview.chromium.org/1590223003
Diffstat (limited to 'src/ports/SkFontHost_FreeType_common.h')
-rw-r--r-- | src/ports/SkFontHost_FreeType_common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ports/SkFontHost_FreeType_common.h b/src/ports/SkFontHost_FreeType_common.h index a9ca42b35f..99b43dccca 100644 --- a/src/ports/SkFontHost_FreeType_common.h +++ b/src/ports/SkFontHost_FreeType_common.h @@ -15,6 +15,8 @@ #include "SkTypeface.h" #include "SkTypes.h" +#include "SkFontMgr.h" + #include <ft2build.h> #include FT_FREETYPE_H @@ -55,6 +57,12 @@ public: bool scanFont(SkStream* stream, int ttcIndex, SkString* name, SkFontStyle* style, bool* isFixedPitch, AxisDefinitions* axes) const; + static void computeAxisValues( + AxisDefinitions axisDefinitions, + const SkFontMgr::FontParameters::Axis* requestedAxis, int requestedAxisCount, + SkFixed* axisValues, + const SkString& name); + private: FT_Face openFace(SkStream* stream, int ttcIndex, FT_Stream ftStream) const; FT_Library fLibrary; |