From 87e7f820f74a990a59fb8f1d5c182584ce586ecf Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Thu, 16 Feb 2017 16:56:26 -0500 Subject: 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 Reviewed-by: Mike Reed --- tests/FontMgrAndroidParserTest.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/FontMgrAndroidParserTest.cpp') diff --git a/tests/FontMgrAndroidParserTest.cpp b/tests/FontMgrAndroidParserTest.cpp index 92dbd951c0..cbcfb3be2a 100644 --- a/tests/FontMgrAndroidParserTest.cpp +++ b/tests/FontMgrAndroidParserTest.cpp @@ -90,13 +90,13 @@ void DumpLoadedFonts(SkTDArray fontFamilies, const char* label) { 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"); } -- cgit v1.2.3