| * Copyright 2017 Google Inc. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| #include "include/core/SkFont.h" |
| #include "include/core/SkPaint.h" |
| #include "include/utils/SkTextUtils.h" |
| #include <initializer_list> |
| // http://bug.skia.org/7315 |
| DEF_SIMPLE_GM(text_scale_skew, canvas, 256, 128) { |
| for (float scale : { 0.5f, 0.71f, 1.0f, 1.41f, 2.0f }) { |
| for (float skew : { -0.5f, 0.0f, 0.5f }) { |
| SkTextUtils::DrawString(canvas, "Skia", x, y, font, p, SkTextUtils::kCenter_Align); |