aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkFontArguments.h
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 /include/core/SkFontArguments.h
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 'include/core/SkFontArguments.h')
-rw-r--r--include/core/SkFontArguments.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/core/SkFontArguments.h b/include/core/SkFontArguments.h
index 473798fb84..52f20728a1 100644
--- a/include/core/SkFontArguments.h
+++ b/include/core/SkFontArguments.h
@@ -5,8 +5,8 @@
* found in the LICENSE file.
*/
-#ifndef SkFontAgruments_DEFINED
-#define SkFontAgruments_DEFINED
+#ifndef SkFontArguments_DEFINED
+#define SkFontArguments_DEFINED
#include "SkScalar.h"
#include "SkTypes.h"
@@ -16,15 +16,15 @@ struct SkFontArguments {
struct VariationPosition {
struct Coordinate {
SkFourByteTag axis;
- SkScalar value;
+ float value;
};
const Coordinate* coordinates;
int coordinateCount;
};
- // deprecated, use VariationCoordinate instead
+ // deprecated, use VariationPosition::Coordinate instead
struct Axis {
SkFourByteTag fTag;
- SkScalar fStyleValue;
+ float fStyleValue;
};
SkFontArguments() : fCollectionIndex(0), fVariationDesignPosition{nullptr, 0} {}