diff options
author | Ben Wagner <bungeman@google.com> | 2017-08-08 15:23:47 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-08 20:11:53 +0000 |
commit | 26308e1757d46fe553c46e2b2b19689a60ecc7c5 (patch) | |
tree | d303973b5e276778b7246f5fb91efd3803c38c97 /src/utils | |
parent | 5a625e08f05157c1519012d8d04942c8f7606ba8 (diff) |
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>
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/SkLua.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkLua.cpp b/src/utils/SkLua.cpp index 413a207114..445a5a8b95 100644 --- a/src/utils/SkLua.cpp +++ b/src/utils/SkLua.cpp @@ -1802,7 +1802,7 @@ static int ltypeface_getFamilyName(lua_State* L) { } 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; } |