From 75e6490a2952849d72ecb1e59c97e36db8908884 Mon Sep 17 00:00:00 2001 From: Bruce Wang Date: Tue, 12 Jun 2018 14:44:22 -0400 Subject: 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 Commit-Queue: Bruce Wang --- tests/TypefaceTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/TypefaceTest.cpp') 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) { -- cgit v1.2.3