Fix build of `pathfinder_text`
This commit is contained in:
parent
3ad1c25796
commit
a383c9a2ab
|
@ -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 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-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(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue