diff --git a/Cargo.toml b/Cargo.toml index ba84c54..2d9b75f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ default-features = false features = ["hardcoded-data"] [dependencies.peniko] -version = "0.3.1" +version = "0.4.0" optional = true [features] diff --git a/src/shape.rs b/src/shape.rs index e64d42e..43ba1fb 100644 --- a/src/shape.rs +++ b/src/shape.rs @@ -1565,7 +1565,7 @@ impl ShapeLine { } else { 0.0 }; - x_advance = x_advance.round(); + x_advance = math::roundf(x_advance); if self.rtl { x -= x_advance; }