-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will let us pre-compute and store the lookupflags and any mark filtering set.
- Loading branch information
Showing
4 changed files
with
75 additions
and
26 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use fea_rs::GlyphSet; | ||
use write_fonts::tables::layout::LookupFlag; | ||
|
||
/// A lookup generated outside of user FEA | ||
/// | ||
/// This will be merged into any user-provided features during compilation. | ||
#[derive(Debug, Default, Clone, PartialEq, serde::Serialize, serde::Deserialize)] | ||
pub struct PendingLookup<T> { | ||
pub(crate) subtables: Vec<T>, | ||
pub(crate) flags: LookupFlag, | ||
pub(crate) mark_filter_set: Option<GlyphSet>, | ||
} | ||
|
||
impl<T> PendingLookup<T> { | ||
pub(crate) fn new( | ||
subtables: Vec<T>, | ||
flags: LookupFlag, | ||
mark_filter_set: Option<GlyphSet>, | ||
) -> Self { | ||
Self { | ||
subtables, | ||
flags, | ||
mark_filter_set, | ||
} | ||
} | ||
} |
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
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