Skip to content

Commit

Permalink
[fontc] Fixups: don't split italic, set vfDir
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyr committed Oct 27, 2024
1 parent 1cf3b20 commit 7a2be4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/gftools/builder/fontc.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def modify_config(self, config: dict):
config["use_fontc"] = self.fontc_bin_path
config["buildWebfont"] = False
config["buildSmallCap"] = False
config["splitItalic"] = False
# override config to turn not build instances if we're variable
if self.will_build_variable_font(config):
config["buildStatic"] = False
Expand All @@ -65,6 +66,7 @@ def modify_config(self, config: dict):
config["outputDir"] = str(output_dir)
config["ttDir"] = str(output_dir)
config["otDir"] = str(output_dir)
config["vfDir"] = str(output_dir)

def will_build_variable_font(self, config: dict) -> bool:
# if config explicitly says dont build variable, believe it
Expand Down

0 comments on commit 7a2be4d

Please sign in to comment.