cosmic-text/src/font/matches.rs

18 lines
321 B
Rust
Raw Normal View History

2022-10-24 08:56:48 -06:00
// SPDX-License-Identifier: MIT OR Apache-2.0
2022-11-08 08:43:27 -07:00
use alloc::sync::Arc;
#[cfg(not(feature = "std"))]
use alloc::{
string::String,
vec::Vec,
};
2022-10-18 12:07:22 -06:00
2022-10-26 14:16:48 -06:00
use crate::Font;
2022-10-18 12:07:22 -06:00
2022-10-18 17:13:48 -06:00
/// Fonts that match a pattern
2022-10-18 12:07:22 -06:00
pub struct FontMatches<'a> {
pub locale: &'a str,
pub default_family: String,
2022-10-25 15:47:55 -06:00
pub fonts: Vec<Arc<Font<'a>>>,
2022-10-18 12:07:22 -06:00
}