aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/fonts/SkRandomScalerContext.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-06-26 11:22:37 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-12 17:30:20 +0000
commite346b1eea442065261c14f92b304031e1330e491 (patch)
treeac71ca13242dad662d3bf157370c943596ce4dd0 /tools/fonts/SkRandomScalerContext.cpp
parenta4704078b9d7f6c86cdd29c80840bfc4f15bea1a (diff)
Add SkTypeface::getVariationDesignParameters
This adds a way for users to query the axis parameters for a typeface. Change-Id: Idc2ac0d84bc7ae2ca484ae410cba5b01883418e5 Reviewed-on: https://skia-review.googlesource.com/137706 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Mike Reed <reed@google.com>
Diffstat (limited to 'tools/fonts/SkRandomScalerContext.cpp')
-rw-r--r--tools/fonts/SkRandomScalerContext.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/fonts/SkRandomScalerContext.cpp b/tools/fonts/SkRandomScalerContext.cpp
index c7cfbff9c3..d32fd62604 100644
--- a/tools/fonts/SkRandomScalerContext.cpp
+++ b/tools/fonts/SkRandomScalerContext.cpp
@@ -217,6 +217,12 @@ int SkRandomTypeface::onGetVariationDesignPosition(
return fProxy->onGetVariationDesignPosition(coordinates, coordinateCount);
}
+int SkRandomTypeface::onGetVariationDesignParameters(
+ SkFontParameters::Variation::Axis parameters[], int parameterCount) const
+{
+ return fProxy->onGetVariationDesignParameters(parameters, parameterCount);
+}
+
int SkRandomTypeface::onGetTableTags(SkFontTableTag tags[]) const {
return fProxy->getTableTags(tags);
}