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

Unified Diff: gm/fontmgr.cpp

Issue 1921903002: Add oblique as a slant. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: static_assert what can be. 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 | include/core/SkFontStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/fontmgr.cpp
diff --git a/gm/fontmgr.cpp b/gm/fontmgr.cpp
index efd01c5ca9fc7cce7d96a88553b74c61d7bdf721..1975f998cdc9fa99e8ce5e5ae39b8396b2c6a073 100644
--- a/gm/fontmgr.cpp
+++ b/gm/fontmgr.cpp
@@ -102,7 +102,7 @@ protected:
SkString sname;
SkFontStyle fs;
set->getStyle(j, &fs, &sname);
- sname.appendf(" [%d %d %d]", fs.weight(), fs.width(), fs.isItalic());
+ sname.appendf(" [%d %d %d]", fs.weight(), fs.width(), fs.slant());
SkSafeUnref(paint.setTypeface(set->createTypeface(j)));
x = drawString(canvas, sname, x, y, paint) + 20;
« no previous file with comments | « no previous file | include/core/SkFontStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698