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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontDescription.cpp

Issue 1912013002: Use the new legacyCreateTypeface that has an SkFontStyle parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Treat WebKit oblique style as skia italic style 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 | third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/fonts/FontDescription.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontDescription.cpp b/third_party/WebKit/Source/platform/fonts/FontDescription.cpp
index cde54996f91e78b47033a4320ff8b9765813cfd4..5a53af31f8ec65893f54f1e0d59fe6b36824faf2 100644
--- a/third_party/WebKit/Source/platform/fonts/FontDescription.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontDescription.cpp
@@ -281,7 +281,8 @@ unsigned FontDescription::styleHashWithoutFamilyList() const
SkFontStyle FontDescription::skiaFontStyle() const
{
int width = static_cast<int>(stretch());
- SkFontStyle::Slant slant = style() == FontStyleItalic
+ // FIXME: handle oblique styles when they're supported in skia
bungeman-skia 2016/04/27 20:42:14 So Skia now has an SkFontStyle::kOblique_Slant. I
Tom (Use chromium acct) 2016/04/28 17:49:20 Acknowledged.
+ SkFontStyle::Slant slant = style()
? SkFontStyle::kItalic_Slant
: SkFontStyle::kUpright_Slant;
return SkFontStyle(numericFontWeight(weight()), width, slant);
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/skia/FontCacheSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698