From a383c9a2ab099459191d31ee67d926a00f7378db Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Mon, 17 Feb 2020 14:55:05 -0800 Subject: [PATCH] Fix build of `pathfinder_text` --- text/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/text/src/lib.rs b/text/src/lib.rs index 09fc3bd7..068a1b7b 100644 --- a/text/src/lib.rs +++ b/text/src/lib.rs @@ -1,6 +1,6 @@ // pathfinder/text/src/lib.rs // -// Copyright © 2019 The Pathfinder Project Developers. +// Copyright © 2020 The Pathfinder Project Developers. // // Licensed under the Apache License, Version 2.0 or the MIT license @@ -14,6 +14,7 @@ use font_kit::error::GlyphLoadingError; use font_kit::hinting::HintingOptions; use font_kit::loader::Loader; use lyon_path::builder::{FlatPathBuilder, PathBuilder, Build}; +use pathfinder_content::fill::FillRule; use pathfinder_content::outline::{Contour, Outline}; use pathfinder_content::stroke::{OutlineStrokeToFill, StrokeStyle}; use pathfinder_geometry::transform2d::Transform2F; @@ -76,7 +77,7 @@ impl SceneExt for Scene { outline = stroke_to_fill.into_outline(); } - self.push_path(DrawPath::new(outline, paint_id, None, String::new())); + self.push_path(DrawPath::new(outline, paint_id, None, FillRule::Winding, String::new())); Ok(()) }