Skip to content

Commit

Permalink
merge no_debugging_tables into unwanted_tables
Browse files Browse the repository at this point in the history
At Universal profile.

(issue #4972)
  • Loading branch information
felipesanches committed Jan 17, 2025
1 parent 7b75e1f commit 865798a
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 49 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ A more detailed list of changes is available in the corresponding milestones for
- ...

### Changes to existing checks
### On the Universal profile.
- **[no_debugging_tables]:** merged into unwanted_tables. (issue #4972)

### On the OpenType Profile
- **[opentype/slant_direction]:** SKIP instead of ERROR if a font does not contain 'H' (PR #4969)

Expand Down
25 changes: 0 additions & 25 deletions Lib/fontbakery/checks/no_debugging_tables.py

This file was deleted.

1 change: 1 addition & 0 deletions Lib/fontbakery/checks/unwanted_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def check_unwanted_tables(ttFont):
" Although Harfbuzz now has optional AAT support,"
" new fonts should not be using that."
),
"Debg": "FontTools debugging table",
}
unwanted_tables_found = []
unwanted_tables_tags = set(UNWANTED_TABLES)
Expand Down
2 changes: 1 addition & 1 deletion Lib/fontbakery/legacy_checkids.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"com.google.fonts/check/name/no_copyright_on_description": "name/no_copyright_on_description",
"com.google.fonts/check/name/trailing_spaces": "name/trailing_spaces",
"com.google.fonts/check/glyf_nested_components": "nested_components",
"com.google.fonts/check/no_debugging_tables": "no_debugging_tables",
"com.google.fonts/check/no_debugging_tables": "unwanted_tables",
"com.fontwerk/check/no_mac_entries": "no_mac_entries",
"com.google.fonts/check/cmap/alien_codepoints": "notofonts/cmap/alien_codepoints",
"com.google.fonts/check/cmap/unexpected_subtables": "notofonts/cmap/unexpected_subtables",
Expand Down
1 change: 0 additions & 1 deletion Lib/fontbakery/profiles/adobefonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
"name/family_and_style_max_length",
"name/italic_names",
"nested_components",
"no_debugging_tables",
"no_mac_entries",
"overlapping_path_segments",
"smallcaps_before_ligatures",
Expand Down
1 change: 0 additions & 1 deletion Lib/fontbakery/profiles/microsoft.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"name/char_restrictions",
"name/family_and_style_max_length",
"nested_components",
"no_debugging_tables",
"no_mac_entries",
"overlapping_path_segments",
"smallcaps_before_ligatures",
Expand Down
1 change: 0 additions & 1 deletion Lib/fontbakery/profiles/universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@
"name/no_copyright_on_description",
"name/italic_names",
"nested_components",
"no_debugging_tables",
"no_mac_entries",
"os2_metrics_match_hhea",
"ots",
Expand Down
20 changes: 0 additions & 20 deletions tests/test_checks_no_debugging_tables.py

This file was deleted.

3 changes: 3 additions & 0 deletions tests/test_checks_unwanted_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def test_check_unwanted_tables(check):
"TSI3",
"TSI5",
"prop", # FIXME: Why is this one unwanted?
"Debg", # Tables such as `Debg` are useful in the pre-production stages of
# font development, but add unnecessary bloat to a production font
# and should be removed before release.
]
# Our reference Mada Regular font is good here:
ttFont = TTFont(TEST_FILE("mada/Mada-Regular.ttf"))
Expand Down

0 comments on commit 865798a

Please sign in to comment.