Revert "Make FontSystem not self-referencing and update fontdb and rustybuzz"
This commit is contained in:
parent
b6398a2d57
commit
eca804c732
11 changed files with 179 additions and 225 deletions
14
src/font/matches.rs
Normal file
14
src/font/matches.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
// SPDX-License-Identifier: MIT OR Apache-2.0
|
||||
|
||||
use alloc::sync::Arc;
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::{string::String, vec::Vec};
|
||||
|
||||
use crate::Font;
|
||||
|
||||
/// Fonts that match a pattern
|
||||
pub struct FontMatches<'a> {
|
||||
pub locale: &'a str,
|
||||
pub default_family: String,
|
||||
pub fonts: Vec<Arc<Font<'a>>>,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue