| 1 | use crate::Property; |
|---|---|
| 2 | |
| 3 | #[derive(Clone, Debug, Default, PartialEq)] |
| 4 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
| 5 | pub struct SelectFont { |
| 6 | pub rejects: Vec<FontMatch>, |
| 7 | pub accepts: Vec<FontMatch>, |
| 8 | } |
| 9 | |
| 10 | #[derive(Clone, Debug, PartialEq)] |
| 11 | #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))] |
| 12 | pub enum FontMatch { |
| 13 | Glob(String), |
| 14 | Pattern(Vec<Property>), |
| 15 | } |
| 16 |
