Skip to content

Instantly share code, notes, and snippets.

@canova
Created July 20, 2017 21:39
Show Gist options
  • Save canova/06de5316bff2c255a3aa02b1187d576c to your computer and use it in GitHub Desktop.
Save canova/06de5316bff2c255a3aa02b1187d576c to your computer and use it in GitHub Desktop.
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