Honor variable font instances
This commit is contained in:
1 parent
f61493fbd1
commit
52d2d89cb6
41 files changed
+11484
-65
No files matched your search
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
#[cfg(not(feature = "std"))]
|
||||
pub use libm::{floorf, roundf, truncf};
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
#[inline]
|
||||
pub fn floorf(x: f32) -> f32 {
|
||||
x.floor()
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
#[inline]
|
||||
pub fn roundf(x: f32) -> f32 {
|
||||
x.round()
|
||||
}
|
||||
|
||||
#[cfg(feature = "std")]
|
||||
#[inline]
|
||||
pub fn truncf(x: f32) -> f32 {
|
||||
x.trunc()
|
||||
}
|
||||
Reference in new issue
Block a user