From cc6da271617d31d3e002b3a162146c357b814ddf Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 18 Dec 2023 18:22:37 +0000 Subject: [PATCH] add link to fontTools.varLib._add_MVAR method as per review --- fontbe/src/mvar.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fontbe/src/mvar.rs b/fontbe/src/mvar.rs index 2eb39557b..e5a80ca7f 100644 --- a/fontbe/src/mvar.rs +++ b/fontbe/src/mvar.rs @@ -136,6 +136,8 @@ impl Work 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;