// SPDX-License-Identifier: MIT OR Apache-2.0 use alloc::sync::Arc; #[cfg(not(feature = "std"))] use alloc::vec::Vec; use fontdb::Family; use unicode_script::Script; use crate::{Font, FontSystem}; use self::platform::*; #[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows",)))] #[path = "other.rs"] mod platform; #[cfg(target_os = "macos")] #[path = "macos.rs"] mod platform; #[cfg(target_os = "linux")] #[path = "unix.rs"] mod platform; #[cfg(target_os = "windows")] #[path = "windows.rs"] mod platform; pub struct FontFallbackIter<'a> { font_system: &'a mut FontSystem, font_ids: &'a [fontdb::ID], default_families: &'a [&'a Family<'a>], default_i: usize, scripts: Vec