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(()) }