Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vttclean is now merged into unwanted_tables #4976

Merged
merged 1 commit into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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)
- **[no_debugging_tables]** and **[vttclean]** are now merged into unwanted_tables. (issues #4972 and #4975)

### On the OpenType Profile
- **[opentype/slant_direction]:** SKIP instead of ERROR if a font does not contain 'H' (PR #4969)
Expand Down
2 changes: 0 additions & 2 deletions Lib/fontbakery/checks/vtt_volt_data.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from fontbakery.prelude import check, FAIL, PASS


# FIXME: I think these two checks ('vtt_volt_data' and 'vttclean') are very similar
# so we may consider merging them into a single one.
@check(
id="vtt_volt_data",
rationale="""
Expand Down
26 changes: 0 additions & 26 deletions Lib/fontbakery/checks/vttclean.py

This file was deleted.

2 changes: 1 addition & 1 deletion Lib/fontbakery/legacy_checkids.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
"com.google.fonts/check/varfont/instances_in_order": "varfont/instances_in_order",
"com.google.fonts/check/varfont/unsupported_axes": "varfont/unsupported_axes",
"com.microsoft/check/vtt_volt_data": "vtt_volt_data",
"com.google.fonts/check/vttclean": "vttclean",
"com.google.fonts/check/vttclean": "unwanted_tables",
"com.google.fonts/check/whitespace_glyphs": "whitespace_glyphs",
"com.google.fonts/check/whitespace_ink": "whitespace_ink",
"com.google.fonts/check/whitespace_widths": "whitespace_widths",
Expand Down
3 changes: 1 addition & 2 deletions Lib/fontbakery/profiles/adobefonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@
"varfont/duplexed_axis_reflow",
"varfont/instances_in_order",
"varfont/unsupported_axes",
"vtt_volt_data", # very similar to vttclean, may be a good idea to merge them.
"vttclean",
"vtt_volt_data",
],
"sections": {
"Adobe Fonts Checks": [
Expand Down
3 changes: 1 addition & 2 deletions Lib/fontbakery/profiles/fontbureau.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
"varfont/duplicate_instance_names",
"varfont/instances_in_order",
"varfont/unsupported_axes",
"vtt_volt_data", # very similar to vttclean, may be a good idea to merge them.
"vttclean",
"vtt_volt_data",
],
"sections": {
"Font Bureau Checks": [
Expand Down
2 changes: 1 addition & 1 deletion Lib/fontbakery/profiles/fontwerk.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"googlefonts/axes_match",
"overlapping_path_segments",
"typographic_family_name",
"vtt_volt_data", # very similar to vttclean, may be a good idea to merge them.
"vtt_volt_data",
#
# Note: When reviewing these 2 checks below, please check whether googlefonts also includes them or not,
# since currently they're in googlefonts' pending_review as well.
Expand Down
2 changes: 1 addition & 1 deletion Lib/fontbakery/profiles/googlefonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"inconsistencies_between_fvar_STAT",
"no_mac_entries",
"typographic_family_name",
"vtt_volt_data", # very similar to vttclean, may be a good idea to merge them.
"vtt_volt_data",
],
"sections": {
"Article Checks": [
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 @@ -53,7 +53,6 @@
"varfont/duplicate_instance_names",
"varfont/instances_in_order",
"varfont/unsupported_axes",
"vttclean", # very similar to vtt_volt_data, may be a good idea to merge them.
],
"sections": {
"Metadata Checks": [
Expand Down
2 changes: 1 addition & 1 deletion Lib/fontbakery/profiles/typenetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"ufo_recommended_fields", # <
"ufo_required_fields", # <
"ufo_unnecessary_fields", # <
"vtt_volt_data", # Very similar to 'vttclean' check, it may be a good idea to merge them.
"vtt_volt_data",
"varfont/unsupported_axes", # Despite discouraging its use, TN accepts fonts with ital axis.
],
"pending_review": [
Expand Down
3 changes: 1 addition & 2 deletions Lib/fontbakery/profiles/universal.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
"varfont/duplicate_instance_names",
"varfont/instances_in_order",
"varfont/unsupported_axes",
"vtt_volt_data", # very similar to vttclean, may be a good idea to merge them.
"vttclean",
"vtt_volt_data",
"whitespace_glyphs",
"whitespace_ink",
"whitespace_widths",
Expand Down
11 changes: 0 additions & 11 deletions tests/test_checks_hinting.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,3 @@ def test_check_smart_dropout(check):

ttFont["prep"].program.bytecode = array.array("B", [0])
assert_results_contain(check(ttFont), FAIL, "lacks-smart-dropout")


@check_id("vttclean")
def test_check_vttclean(check):
"""There must not be VTT Talk sources in the font."""

good_font = TEST_FILE("mada/Mada-Regular.ttf")
assert_PASS(check(good_font))

bad_font = TEST_FILE("hinting/Roboto-VF.ttf")
assert_results_contain(check(bad_font), FAIL, "has-vtt-sources")
Loading