Add SkTypeface::getVariationDesignPosition.
Allow users to query a typeface's position in variation design space.
Change-Id: I5d80c8ff658708a5d1aa386ec5b7396dcb621198
Reviewed-on: https://skia-review.googlesource.com/7130
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Mike Reed <reed@google.com>
diff --git a/tests/FontMgrAndroidParserTest.cpp b/tests/FontMgrAndroidParserTest.cpp
index 92dbd95..cbcfb3b 100644
--- a/tests/FontMgrAndroidParserTest.cpp
+++ b/tests/FontMgrAndroidParserTest.cpp
@@ -90,13 +90,13 @@
for (int j = 0; j < fontFamilies[i]->fFonts.count(); ++j) {
const FontFileInfo& ffi = fontFamilies[i]->fFonts[j];
SkDebugf(" file (%d) %s#%d", ffi.fWeight, ffi.fFileName.c_str(), ffi.fIndex);
- for (const auto& axis : ffi.fAxes) {
+ for (const auto& coordinate : ffi.fVariationDesignPosition) {
SkDebugf(" @'%c%c%c%c'=%f",
- (axis.fTag >> 24) & 0xFF,
- (axis.fTag >> 16) & 0xFF,
- (axis.fTag >> 8) & 0xFF,
- (axis.fTag ) & 0xFF,
- axis.fStyleValue);
+ (coordinate.axis >> 24) & 0xFF,
+ (coordinate.axis >> 16) & 0xFF,
+ (coordinate.axis >> 8) & 0xFF,
+ (coordinate.axis ) & 0xFF,
+ coordinate.value);
}
SkDebugf("\n");
}