Update peniko version to 0.4.0 (#387)

* Update peniko version

* Fix no_std build
This commit is contained in:
Taj Pereira 2025-05-29 22:50:41 +02:00 committed by GitHub
parent 987ff45ff2
commit c597f3755b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ default-features = false
features = ["hardcoded-data"] features = ["hardcoded-data"]
[dependencies.peniko] [dependencies.peniko]
version = "0.3.1" version = "0.4.0"
optional = true optional = true
[features] [features]

View file

@ -1565,7 +1565,7 @@ impl ShapeLine {
} else { } else {
0.0 0.0
}; };
x_advance = x_advance.round(); x_advance = math::roundf(x_advance);
if self.rtl { if self.rtl {
x -= x_advance; x -= x_advance;
} }