aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/gammatext.cpp
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-11-14 10:45:32 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-11-14 18:45:04 +0000
commitcb9fc4160ea95453cb37134d4477c63d512458cc (patch)
tree9f8ae3cf1448b1aadf0490a6de225a7256cc1d33 /gm/gammatext.cpp
parent9592817042c411accbfa37ad736b139f9af9c976 (diff)
remove platform_font_name()
It's used rarely and now that we're mostly using portable fonts, it only serves to confuse. Sans-serif doesn't seem to work anyway. Simplify gm/typeface.cpp to just test the default typeface. Change-Id: I091239ea91af9d9e01d3c76280636a6061b5fb5c Reviewed-on: https://skia-review.googlesource.com/71261 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gm/gammatext.cpp')
-rw-r--r--gm/gammatext.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/gm/gammatext.cpp b/gm/gammatext.cpp
index 0b560018a1..e248f58db0 100644
--- a/gm/gammatext.cpp
+++ b/gm/gammatext.cpp
@@ -19,11 +19,6 @@ static sk_sp<SkShader> make_heatGradient(const SkPoint pts[2]) {
SkShader::kClamp_TileMode);
}
-static bool setFont(SkPaint* paint, const char name[]) {
- paint->setTypeface(SkTypeface::MakeFromName(name, SkFontStyle()));
- return SkToBool(paint->getTypeface());
-}
-
/**
Test a set of clipping problems discovered while writing blitAntiRect,
and test all the code paths through the clipping blitters.
@@ -69,7 +64,6 @@ protected:
size_t len = strlen(text);
SkPaint paint;
- setFont(&paint, sk_tool_utils::platform_font_name("serif"));
paint.setTextSize(SkIntToScalar(16));
paint.setAntiAlias(true);
paint.setLCDRenderText(true);