aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkFontHost_FreeType_common.h
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-01-21 14:17:47 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-21 14:17:47 -0800
commitf6c7107d0385cc2b556802354b93b7dcff61570d (patch)
tree6acc6e0ae4621e2bbc6deb43c3198a73c5d56433 /src/ports/SkFontHost_FreeType_common.h
parent27a6e86fb17fce7ce962b9080eae36926e87d568 (diff)
Expose API for gx font variation axes.
Diffstat (limited to 'src/ports/SkFontHost_FreeType_common.h')
-rw-r--r--src/ports/SkFontHost_FreeType_common.h8
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;