File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -225,17 +225,14 @@ def has_feature(font, featureTag):
225225 return False
226226
227227
228- def characters_per_script (ttFont , script , category = None ):
228+ def characters_per_script (ttFont , target_script , target_category = None ):
229229 """Return the number of characters in a font for a given script"""
230- from youseedee import ucd_data
230+ from unicodedataplus import script , category
231231
232232 characters = []
233233 for codepoint in ttFont .getBestCmap ().keys ():
234- data = ucd_data (codepoint )
235- if (
236- "Script" in data
237- and data ["Script" ] == script
238- and (not category or data ["General_Category" ] == category )
234+ if script (chr (codepoint )) == target_script and (
235+ not target_category or category (chr (codepoint )) == target_category
239236 ):
240237 characters .append (codepoint )
241238
Original file line number Diff line number Diff line change @@ -2739,7 +2739,6 @@ def com_google_fonts_check_alt_caron(ttFont):
27392739
27402740@check (
27412741 id = "com.google.fonts/check/case_mapping" ,
2742- conditions = ["network" ],
27432742 rationale = """
27442743 Ensure that no glyph lacks its corresponding upper or lower counterpart
27452744 (but only when unicode supports case-mapping).
@@ -2821,7 +2820,6 @@ def com_google_fonts_check_case_mapping(ttFont):
28212820
28222821@check (
28232822 id = "com.google.fonts/check/missing_small_caps_glyphs" ,
2824- conditions = ["network" ],
28252823 rationale = """
28262824 Ensure small caps glyphs are available if
28272825 a font declares smcp or c2sc OT features.
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ dependencies = [
4545 " uharfbuzz" ,
4646 " vharfbuzz >= 0.2.0" ,
4747 " typing_extensions ; python_version < '3.11'" ,
48- " youseedee " ,
48+ " unicodedataplus " ,
4949]
5050
5151[project .optional-dependencies ]
You can’t perform that action at this time.
0 commit comments