diff options
author | Ben Wagner <bungeman@google.com> | 2017-02-24 11:15:26 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-24 16:59:05 +0000 |
commit | fc497343cbcbd526f77da913ae2feca0e1b1b866 (patch) | |
tree | 98d57a95e80467c180b74f698072ea04c674af27 /tests/FontMgrAndroidParserTest.cpp | |
parent | 9fe1b22249171087a0f01c67369559f6fd491540 (diff) |
Add SkTypeface::getVariationDesignPosition.
Allow users to query a typeface's position in variation design space.
Change-Id: Id7cae439e795b8c9586394f11359fb7fe55e1c0b
Reviewed-on: https://skia-review.googlesource.com/8861
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'tests/FontMgrAndroidParserTest.cpp')
-rw-r--r-- | tests/FontMgrAndroidParserTest.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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<FontFamily*> 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"); } |