Update peniko version to 0.4.0 (#387)
* Update peniko version * Fix no_std build
This commit is contained in:
parent
987ff45ff2
commit
c597f3755b
2 changed files with 2 additions and 2 deletions
|
|
@ -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]
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue