Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: components/font_service/font_service_app.cc

Issue 1922153004: Update font_service to understand 'oblique'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/font_service/public/interfaces/font_service.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/font_service/font_service_app.cc
diff --git a/components/font_service/font_service_app.cc b/components/font_service/font_service_app.cc
index ae87c8d8bc6391b6c885ec6913e9e3e9d1e5bb4a..4ec5f06f3f654b621052273e68881b4b0f4b4033 100644
--- a/components/font_service/font_service_app.cc
+++ b/components/font_service/font_service_app.cc
@@ -17,6 +17,9 @@ static_assert(static_cast<uint32_t>(SkFontStyle::kUpright_Slant) ==
static_assert(static_cast<uint32_t>(SkFontStyle::kItalic_Slant) ==
static_cast<uint32_t>(font_service::TypefaceSlant::ITALIC),
"Skia and font service flags must match");
+static_assert(static_cast<uint32_t>(SkFontStyle::kOblique_Slant) ==
+ static_cast<uint32_t>(font_service::TypefaceSlant::OBLIQUE),
+ "Skia and font service flags must match");
namespace {
« no previous file with comments | « no previous file | components/font_service/public/interfaces/font_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698