diff options
author | Bruce Wang <brucewang@google.com> | 2018-06-12 14:44:22 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-12 21:25:54 +0000 |
commit | 75e6490a2952849d72ecb1e59c97e36db8908884 (patch) | |
tree | 8468b08e5aec3c514c5f39189baefc040e5c76c9 /tests/TypefaceTest.cpp | |
parent | 2652223767c00c8b4ff5d805fd015a9b43910014 (diff) |
Implement DWriteFontTypeface::onGetVariationDesignPosition on win10.
Copy into 'coordinates' (allocated by the caller) the design variation
coordinates. Return the number of axes, or -1 if there is an error.
Change-Id: Ie2fe88aaae358ec471aafd655b4ed0be80d43ae6
Reviewed-on: https://skia-review.googlesource.com/134329
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Bruce Wang <brucewang@google.com>
Diffstat (limited to 'tests/TypefaceTest.cpp')
-rw-r--r-- | tests/TypefaceTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/TypefaceTest.cpp b/tests/TypefaceTest.cpp index fcef366cb2..f0253ef08f 100644 --- a/tests/TypefaceTest.cpp +++ b/tests/TypefaceTest.cpp @@ -174,7 +174,7 @@ DEF_TEST(TypefaceAxes, reporter) { // Convert to fixed for "almost equal". SkFixed fixedRead = SkScalarToFixed(positionRead[0].value); SkFixed fixedOriginal = SkScalarToFixed(position[1].value); - REPORTER_ASSERT(reporter, fixedRead == fixedOriginal); + REPORTER_ASSERT(reporter, SkTAbs(fixedRead - fixedOriginal) < 2); } DEF_TEST(TypefaceVariationIndex, reporter) { |