use std::sync::Arc;
#[cfg(feature = "schemars")]
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
#[derive(Default, Clone, Eq, PartialEq, Hash, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schemars", derive(JsonSchema))]
pub struct FontFallbacks(pub Arc<Vec<String>>);
impl FontFallbacks {
pub fn fallback_list(&self) -> &[String] {
self.0.as_slice()
}
pub fn from_fonts(fonts: Vec<String>) -> Self {
FontFallbacks(Arc::new(fonts))
}
}