Created
July 20, 2017 21:39
-
-
Save canova/06de5316bff2c255a3aa02b1187d576c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub struct FontFeatureValuesRule { | |
/// Font family list for @font-feature-values rule. | |
pub family_names: Vec<FamilyName>, | |
/// @font-feature-values | |
pub blocks: Vec<FFVBlock>, | |
/// The line and column of the rule's source code. | |
pub source_location: SourceLocation, | |
} | |
pub enum FFVBlock { | |
Swash(Vec<FFVDeclaration<u32>>), | |
Stylistic(Vec<FFVDeclaration<u32>>), | |
Ornaments(Vec<FFVDeclaration<u32>>), | |
Annotation(Vec<FFVDeclaration<u32>>), | |
CharacterVariant(Vec<FFVDeclaration<(u32, Option<u32>)>>), | |
Styleset(Vec<FFVDeclaration<Vec<u32>>>), | |
} | |
pub struct FFVDeclaration<T> { | |
pub name: Atom, | |
pub values: T, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment