Skip to content

Commit

Permalink
add link to fontTools.varLib._add_MVAR method as per feview
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Dec 18, 2023
1 parent 32c63f1 commit ff6dbe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fontbe/src/mvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ impl Work<Context, AnyWorkId, Error> for MvarWork {

/// Generate [MVAR](https://learn.microsoft.com/en-us/typography/opentype/spec/MVAR)
fn exec(&self, context: &Context) -> Result<(), Error> {
// for reference, fontTools MVAR building code can be found here:
// https://github.com/fonttools/fonttools/blob/2dc887c/Lib/fontTools/varLib/__init__.py#L661-L736
let static_metadata = context.ir.static_metadata.get();
let metrics = context.ir.global_metrics.get();
let var_model = &static_metadata.variation_model;
Expand Down

0 comments on commit ff6dbe4

Please sign in to comment.