1 | /// Alias elements provide a shorthand notation for the set of common match operations needed to substitute one font family for another. They contain a <family> element followed by optional <prefer>, <accept> and <default> elements. Fonts matching the <family> element are edited to prepend the list of <prefer>ed families before the matching <family>, append the <accept>able families after the matching <family> and append the <default> families to the end of the family list. |
2 | #[derive (Clone, Debug, Default, PartialEq, Eq)] |
3 | #[cfg_attr (feature = "serde" , derive(serde::Serialize, serde::Deserialize))] |
4 | pub struct Alias { |
5 | /// alias name |
6 | pub alias: String, |
7 | |
8 | /// `<prefer>` |
9 | pub prefer: Vec<String>, |
10 | /// `<accept>` |
11 | pub accept: Vec<String>, |
12 | /// `<default>` |
13 | pub default: Vec<String>, |
14 | } |
15 | |