Skip to content

Commit

Permalink
Merge pull request #979 from googlefonts/static-keep-overlaps
Browse files Browse the repository at this point in the history
ttx_diff: pass --keep-overlaps for static fontmake builds for now
  • Loading branch information
anthrotype authored Oct 3, 2024
2 parents 8644ab9 + 8633e6e commit 6d4a87b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion resources/scripts/ttx_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ def build_fontc(source: Path, fontc_cargo_path: Path, build_dir: Path, compare:


def build_fontmake(source: Path, build_dir: Path, compare: str):
variable = source_is_variable(source)
buildtype = "variable"
if not source_is_variable(source):
if not variable:
buildtype = "ttf"
cmd = [
"fontmake",
Expand All @@ -217,6 +218,12 @@ def build_fontmake(source: Path, build_dir: Path, compare: str):
"--debug-feature-file",
"debug.fea",
]
if not variable:
# fontmake static builds perform overlaps removal, but fontc can't do that yet.
# Disable the filter to make the diff less noisy.
# TODO(anthrotype): Remove if/when fontc gains the ability to remove overlaps.
# https://github.com/googlefonts/fontc/issues/975
cmd.append("--keep-overlaps")
if compare == _COMPARE_GFTOOLS:
cmd += [
"--filter",
Expand Down

0 comments on commit 6d4a87b

Please sign in to comment.