270 {
273 auto test_font_manager = sk_make_sp<MockFontMgr>(
test_typeface);
274
276 auto observer = sk_make_sp<MockPropertyObserver>();
277
279 .setPropertyObserver(observer)
280 .setFontManager(test_font_manager)
282
284
285 const auto&
colors = observer->colors();
291
292 const auto& colorsWithFullKeypath = observer->colorsWithFullKeypath();
298
299 const auto& opacities = observer->opacities();
305
306 const auto& transforms = observer->transforms();
310 SkPoint::Make(0, 0),
311 SkPoint::Make(0, 0),
312 SkVector::Make(100, 100),
313 0,
314 0,
315 0
316 }));
319 SkPoint::Make(0, 0),
320 SkPoint::Make(25, 25),
321 SkVector::Make(100, 100),
322 0,
323 0,
324 0
325 }));
328 SkPoint::Make(0, 0),
329 SkPoint::Make(0, 0),
330 SkVector::Make(50, 50),
331 0,
332 0,
333 0
334 }));
335
336 const auto& texts = observer->texts();
342 100,
343 0, 100,
344 0,
345 120,
346 12,
347 0,
348 0,
350 Shaper::VAlign::kTopBaseline,
352 Shaper::LinebreakPolicy::kExplicit,
353 Shaper::Direction::kLTR,
358 TextPaintOrder::kFillStroke,
359 SkPaint::Join::kDefault_Join,
360 false,
361 false,
362 nullptr,
365 });
367 text_prop.fLocale = "custom_lc";
368 texts[0].handle->set(text_prop);
370}
static void test_typeface(skiatest::Reporter *reporter)
constexpr SkColor SK_ColorTRANSPARENT
static bool SkScalarNearlyEqual(SkScalar x, SkScalar y, SkScalar tolerance=SK_ScalarNearlyZero)
#define REPORTER_ASSERT(r, cond,...)
PODArray< SkColor > colors
DlVertices::Builder Builder
static constexpr SkRect MakeEmpty()