Import CoreFloat when no_std is enabled

This commit is contained in:
Rasmus Kildevæld 2026-03-27 14:24:45 +01:00 committed by Jeremy Soller
parent 158d8ba518
commit 9a5579f523

View file

@ -1,7 +1,10 @@
// SPDX-License-Identifier: MIT OR Apache-2.0
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
use alloc::boxed::Box;
#[cfg(feature = "no_std")]
use core_maths::CoreFloat;
use core::fmt;
use swash::scale::{image::Content, ScaleContext};
use swash::scale::{Render, Source, StrikeWith};