Skip to content

Commit a1906f5

Browse files
committed
PYRS is a default Vendor ID entry from FontLab generated binaries.
com.google.fonts/check/vendor_id (issue #3943)
1 parent 324b377 commit a1906f5

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

CHANGELOG.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@ A more detailed list of changes is available in the corresponding milestones for
1717
- **[com.google.fonts/check/color_cpal_brightness]:** Warn if COLRv0 layers are colored too dark or too bright instead of foreground color. (PR #3908)
1818
- **[com.google.fonts/check/empty_glyph_on_gid1_for_colrv0]:** Ensure that GID 1 is empty to work around Windows 10 rendering bug ([gftools issue #609](https://github.com/googlefonts/gftools/issues/609))
1919

20-
### Removed from the Open Type and Adobe Profiles
20+
### Deprecated check (removed from the Open Type and Adobe Profiles)
2121
- **[com.google.fonts/check/all_glyphs_have_codepoints]:** This check cannot ever fail with fontTools and is therefore redundant. (issue #1793)
2222

23-
### BugFixes
24-
- **[setup.py]:** Our protobuf files have been compiled with v3 versions of protobuf which cannot be read by v4. (PR #3946)
23+
### Changes to existing checks
24+
#### On the Universal Profile
25+
- **[com.google.fonts/check/unreachable_glyphs]:** Fix handling of format 14 'cmap' table. (issue #3915)
26+
27+
#### On the OpenType Profile
2528
- **[com.adobe.fonts/check/varfont/valid_default_instance_nameids]:** The check did not account for nameID 17. (issue #3895)
29+
30+
#### On the GoogleFonts Profile
31+
- **[com.google.fonts/check/vendor_id]:** PYRS is a default Vendor ID entry from FontLab generated binaries. (issue #3943)
2632
- **[com.google.fonts/check/colorfont_tables]:** Check for four-digit 'SVG ' table instead of 'SVG' (PR #3903)
27-
- **[com.google.fonts/check/unreachable_glyphs]:** Fix handling of format 14 'cmap' table. (issue #3915)
33+
34+
### BugFixes
35+
- **[setup.py]:** Our protobuf files have been compiled with v3 versions of protobuf which cannot be read by v4. (PR #3946)
2836
- Added a `--timeout` parameter and set timeouts on all network requests. (PR #3892)
2937
- Fix summary header in the Github Markdown reporter. (PR #3923)
3038
- Use `getBestFullName` for the report instead of reading name table identifier 4 directly. (PR #3924)

Lib/fontbakery/profiles/googlefonts.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,8 @@ def com_google_fonts_check_fstype(ttFont):
922922
If you registered recently, you're safe to ignore warnings emitted by this
923923
check, since your ID will soon be included in one of our upcoming releases.
924924
""",
925-
proposal = 'legacy:check/018'
925+
proposal = ['legacy:check/018',
926+
'https://github.com/googlefonts/fontbakery/issues/3943']
926927
)
927928
def com_google_fonts_check_vendor_id(ttFont, registered_vendor_ids):
928929
"""Checking OS/2 achVendID."""
@@ -934,7 +935,7 @@ def com_google_fonts_check_vendor_id(ttFont, registered_vendor_ids):
934935
" https://www.microsoft.com/typography/links/vendorlist.aspx\n")
935936

936937
vid = ttFont['OS/2'].achVendID
937-
bad_vids = ['UKWN', 'ukwn', 'PfEd']
938+
bad_vids = ['UKWN', 'ukwn', 'PfEd', 'PYRS']
938939
if vid is None:
939940
yield WARN,\
940941
Message("not-set",

tests/profiles/googlefonts_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ def test_check_vendor_id():
692692
# Let's start with our reference Merriweather Regular
693693
ttFont = TTFont(TEST_FILE("merriweather/Merriweather-Regular.ttf"))
694694

695-
bad_vids = ['UKWN', 'ukwn', 'PfEd']
695+
bad_vids = ['UKWN', 'ukwn', 'PfEd', 'PYRS']
696696
for bad_vid in bad_vids:
697697
ttFont['OS/2'].achVendID = bad_vid
698698
assert_results_contain(check(ttFont),

0 commit comments

Comments
 (0)