diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-24 19:14:39 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-24 19:14:39 +0000 |
commit | 5111648ceff9c61065cc013760ead4b531a2ad43 (patch) | |
tree | a0e5a4be6b731fd801fbdda4bbc0b4d6ba695888 /gm/fontmgr.cpp | |
parent | dd8e353bef35b2656b83499289b409af3b0e3f10 (diff) |
show fontstyle values for each style
git-svn-id: http://skia.googlecode.com/svn/trunk@8843 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/fontmgr.cpp')
-rw-r--r-- | gm/fontmgr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gm/fontmgr.cpp b/gm/fontmgr.cpp index 121843572b..4ff55a7a6c 100644 --- a/gm/fontmgr.cpp +++ b/gm/fontmgr.cpp @@ -59,6 +59,7 @@ protected: SkString sname; SkFontStyle fs; set->getStyle(j, &fs, &sname); + sname.appendf(" [%d %d %d]", fs.weight(), fs.width(), fs.isItalic()); SkSafeUnref(paint.setTypeface(set->createTypeface(j))); x = drawString(canvas, sname, x, y, paint) + 20; |