Remove last uses of SkTypeface::style() in Skia.
The Lua typeface.getStyle now returns SkFontStyle.
Dumping a glyph cache entry is now more accurate.
SkTypeface::MakeFromTypeface now does a more accurate check.
Change-Id: I6150636c8c674353bd0eed4d95aa0794d3919c39
Reviewed-on: https://skia-review.googlesource.com/32200
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp
index 413a207..445a5a8 100644
--- a/src/utils/SkLua.cpp
+++ b/src/utils/SkLua.cpp
@@ -1802,7 +1802,7 @@
}
static int ltypeface_getStyle(lua_State* L) {
- lua_pushnumber(L, (double)get_ref<SkTypeface>(L, 1)->style());
+ push_obj(L, get_ref<SkTypeface>(L, 1)->fontStyle());
return 1;
}