aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
Diffstat (limited to 'gm')
-rw-r--r--gm/fontmgr.cpp2
-rw-r--r--gm/typeface.cpp5
2 files changed, 2 insertions, 5 deletions
diff --git a/gm/fontmgr.cpp b/gm/fontmgr.cpp
index c3fff702dd..e544a3e4a4 100644
--- a/gm/fontmgr.cpp
+++ b/gm/fontmgr.cpp
@@ -180,7 +180,7 @@ protected:
paint.setTextSize(17);
const char* gNames[] = {
- "Helvetica Neue", "Arial"
+ "Helvetica Neue", "Arial", "sans"
};
sk_sp<SkFontStyleSet> fset;
diff --git a/gm/typeface.cpp b/gm/typeface.cpp
index 028e2a1ca3..fe43e756b8 100644
--- a/gm/typeface.cpp
+++ b/gm/typeface.cpp
@@ -89,10 +89,7 @@ class TypefaceStylesGM : public skiagm::GM {
bool fApplyKerning;
public:
- TypefaceStylesGM(bool applyKerning)
- : fApplyKerning(applyKerning) {
- memset(fFaces, 0, sizeof(fFaces));
- }
+ TypefaceStylesGM(bool applyKerning) : fApplyKerning(applyKerning) {}
protected:
void onOnceBeforeDraw() override {