@@ -1452,7 +1452,7 @@ def com_google_fonts_check_license_OFL_body_text(license_contents):
1452
1452
name table:
1453
1453
1454
1454
- "This Font Software is licensed under the SIL Open Font License, Version 1.1.
1455
- This license is available with a FAQ at: https://scripts.sil. org/OFL "
1455
+ This license is available with a FAQ at: openfontlicense. org"
1456
1456
1457
1457
- "Licensed under the Apache License, Version 2.0"
1458
1458
@@ -1532,7 +1532,7 @@ def com_google_fonts_check_name_license(ttFont, license_filename):
1532
1532
The string snippets used for detecting licensing terms are:
1533
1533
1534
1534
- "This Font Software is licensed under the SIL Open Font License, Version 1.1.
1535
- This license is available with a FAQ at: https://scripts.sil. org/OFL "
1535
+ This license is available with a FAQ at: openfontlicense. org"
1536
1536
1537
1537
- "Licensed under the Apache License, Version 2.0"
1538
1538
@@ -1545,15 +1545,18 @@ def com_google_fonts_check_name_license(ttFont, license_filename):
1545
1545
When in doubt, please choose OFL for new font projects.
1546
1546
""" ,
1547
1547
conditions = ["familyname" ],
1548
- proposal = "legacy:check/030" ,
1548
+ proposal = [
1549
+ "legacy:check/030" ,
1550
+ "https://github.com/fonttools/fontbakery/issues/4358" ,
1551
+ ],
1549
1552
)
1550
1553
def com_google_fonts_check_name_license_url (ttFont , familyname ):
1551
1554
"""License URL matches License text on name table?"""
1552
1555
from fontbakery .constants import PLACEHOLDER_LICENSING_TEXT
1553
1556
1554
1557
LEGACY_UFL_FAMILIES = ["Ubuntu" , "UbuntuCondensed" , "UbuntuMono" ]
1555
1558
LICENSE_URL = {
1556
- "OFL.txt" : "https://scripts.sil. org/OFL " ,
1559
+ "OFL.txt" : "https://openfontlicense. org" ,
1557
1560
"LICENSE.txt" : "https://www.apache.org/licenses/LICENSE-2.0" ,
1558
1561
"UFL.txt" : "https://www.ubuntu.com/legal/terms-and-policies/font-licence" ,
1559
1562
}
@@ -1618,6 +1621,13 @@ def com_google_fonts_check_name_license_url(ttFont, familyname):
1618
1621
string = "https://" .join (string .split ("http://" ))
1619
1622
if string == expected :
1620
1623
found_good_entry = True
1624
+ elif "scripts.sil.org/OFL" in string :
1625
+ found_good_entry = True
1626
+ yield WARN , Message (
1627
+ "deprecated-ofl-url" ,
1628
+ 'OFL url is no longer "https://scripts.sil.org/OFL". '
1629
+ "Use 'https://openfontlicense.org' instead." ,
1630
+ )
1621
1631
else :
1622
1632
passed = False
1623
1633
yield FAIL , Message (
0 commit comments