commit | ee6a9919a362e16c1d84a870ce867d1ad7b8a141 | [log] [tgz] |
---|---|---|
author | mboc <mboc@opera.com> | Tue May 31 11:42:36 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue May 31 11:42:37 2016 -0700 |
tree | 971189523fe82821c82a936cafaefd59b76338f7 | |
parent | bfa9275968d11d459b30a485cedcb55c7fecf9d7 [diff] [blame] |
SkTypeface::MakeFromName to take SkFontStyle. SkTypeface::MakeFromName currently takes SkTypeface::Style, which is quite limited. This starts the transition to this function taking SkFontStyle instead. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1818043002 TBR=reed He said it sounded like a good idea. Review-Url: https://codereview.chromium.org/1818043002
diff --git a/tests/PDFPrimitivesTest.cpp b/tests/PDFPrimitivesTest.cpp index 07ddabc..e438bfe 100644 --- a/tests/PDFPrimitivesTest.cpp +++ b/tests/PDFPrimitivesTest.cpp
@@ -436,7 +436,7 @@ !SkPDFFont::CanEmbedTypeface(noEmbedTypeface.get(), &canon)); } sk_sp<SkTypeface> portableTypeface( - sk_tool_utils::create_portable_typeface(NULL, SkTypeface::kNormal)); + sk_tool_utils::create_portable_typeface(NULL, SkFontStyle())); REPORTER_ASSERT(reporter, SkPDFFont::CanEmbedTypeface(portableTypeface.get(), &canon)); }