Skip to content

Commit

Permalink
Add rationale for family/has_license
Browse files Browse the repository at this point in the history
com.google.fonts/check/family/has_license
On the Google Fonts Profile.

(PR #4570)
  • Loading branch information
simoncozens authored and felipesanches committed Mar 5, 2024
1 parent 8a60eee commit 51856ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ A more detailed list of changes is available in the corresponding milestones for
- **[com.google.fonts/check/smart_dropout]:** Improve rationale with better fixing instructions. (PR #4570)
- **[com.google.fonts/check/production_glyphs_similarity]:** Added rationale. (PR #4570)
- **[com.google.fonts/check/version_bump]:** Added rationale. (PR #4570)
- **[com.google.fonts/check/family/has_license]:** Added rationale. (PR #4570)

#### On the FontValidator profile
- **[com.google.fonts/check/fontvalidator]:** Added rationale. (PR #4570)
Expand Down
5 changes: 5 additions & 0 deletions Lib/fontbakery/checks/googlefonts/license.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ def is_ofl(font):
id="com.google.fonts/check/family/has_license",
conditions=["gfonts_repo_structure"],
proposal="legacy:check/028",
rationale="""
A license file is required for all fonts in the Google Fonts collection.
This checks that the font's directory contains a file named OFL.txt or
LICENSE.txt.
""",
)
def com_google_fonts_check_family_has_license(licenses, config):
"""Check font has a license."""
Expand Down

0 comments on commit 51856ab

Please sign in to comment.