cosmic-text/src/font/matches.rs

15 lines
310 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"))]
2023-01-04 20:03:03 -07:00
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
}