aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar bungeman <bungeman@google.com>2016-02-25 11:20:01 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-25 11:20:01 -0800
commit47a1e96b957b50662274360f1a390d76ab3d02cc (patch)
tree9f0c168c3d7558b3e045b50acb24d56e64abb4d8 /tests
parent26cc3f5ad0aacf80bba162bab4b23a2901ffed17 (diff)
Deduplicate axis value resolving code.
The code was originally written for Android, but is now implemented more generally by the FreeType scanner to be shared between all FreeType backed typefaces. This removes the now duplicate code in the Android font manager and uses the shared code instead. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1726213004 Review URL: https://codereview.chromium.org/1726213004
Diffstat (limited to 'tests')
-rw-r--r--tests/FontMgrAndroidParserTest.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/FontMgrAndroidParserTest.cpp b/tests/FontMgrAndroidParserTest.cpp
index a45bc259f4..a56331e87f 100644
--- a/tests/FontMgrAndroidParserTest.cpp
+++ b/tests/FontMgrAndroidParserTest.cpp
@@ -88,7 +88,16 @@ 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\n", ffi.fWeight, ffi.fFileName.c_str(), ffi.fIndex);
+ SkDebugf(" file (%d) %s#%d", ffi.fWeight, ffi.fFileName.c_str(), ffi.fIndex);
+ for (const auto& axis : ffi.fAxes) {
+ SkDebugf(" @'%c%c%c%c'=%f",
+ (axis.fTag >> 24) & 0xFF,
+ (axis.fTag >> 16) & 0xFF,
+ (axis.fTag >> 8) & 0xFF,
+ (axis.fTag ) & 0xFF,
+ axis.fStyleValue);
+ }
+ SkDebugf("\n");
}
}
SkDebugf("\n\n");