From 5fb6bd4b7e8d00b7f2543ca10ec9022b32632f29 Mon Sep 17 00:00:00 2001 From: caryclark Date: Mon, 23 Jun 2014 11:25:00 -0700 Subject: use platform-independent font for gm Create a custom typeface and scaler to render simple paths the same on all platforms. GM tests are modified to explicitly select the custom typeface. R=reed@google.com, mtklein@google.com, bungeman@google.com TBR=reed Author: caryclark@google.com Review URL: https://codereview.chromium.org/348323003 --- gm/convexpolyclip.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'gm/convexpolyclip.cpp') diff --git a/gm/convexpolyclip.cpp b/gm/convexpolyclip.cpp index 6de72dc3b6..cb698c162b 100644 --- a/gm/convexpolyclip.cpp +++ b/gm/convexpolyclip.cpp @@ -54,6 +54,7 @@ static SkBitmap make_bmp(int w, int h) { } paint.setAntiAlias(true); + sk_tool_utils::set_portable_typeface(&paint); paint.setTextSize(wScalar / 2.2f); paint.setShader(0); paint.setColor(SK_ColorLTGRAY); -- cgit v1.2.3