nototools/remove-requireReal-arg-for-fonttools-4.27.0.patch
wk333 4237648ce2 Fix autofix_for_release.py noto_lint.py scripts error
(cherry picked from commit 5889e95930eb2413f52002a46244da517a3fea53)
2024-11-29 09:04:04 +08:00

32 lines
1.6 KiB
Diff

diff --git a/nototools-cd79db632c9a506ad61ae72bfad5875341ca56b8/nototools/compare_fonts.py b/nototools-cd79db632c9a506ad61ae72bfad5875341ca56b8/nototools/compare_fonts.py
index b0b9379..48a1746 100755
--- a/nototools-cd79db632c9a506ad61ae72bfad5875341ca56b8/nototools/compare_fonts.py
+++ b/nototools-cd79db632c9a506ad61ae72bfad5875341ca56b8/nototools/compare_fonts.py
@@ -182,10 +182,10 @@ class FontCompare(object):
return result
def _test_gid(self, cp):
- return self.test.getGlyphID(self.test_cmap[cp], requireReal=True)
+ return self.test.getGlyphID(self.test_cmap[cp])
def _target_gid(self, cp):
- return self.target.getGlyphID(self.target_cmap[cp], requireReal=True)
+ return self.target.getGlyphID(self.target_cmap[cp])
def _cp_error_msg(self, cp, test_msg, target_msg):
test_gid = self._test_gid(cp)
diff --git a/nototools-cd79db632c9a506ad61ae72bfad5875341ca56b8/nototools/noto_lint.py b/nototools-cd79db632c9a506ad61ae72bfad5875341ca56b8/nototools/noto_lint.py
index 4951832..4c902f1 100755
--- a/nototools-cd79db632c9a506ad61ae72bfad5875341ca56b8/nototools/noto_lint.py
+++ b/nototools-cd79db632c9a506ad61ae72bfad5875341ca56b8/nototools/noto_lint.py
@@ -1380,7 +1380,7 @@ def check_font(
cmap = font_data.get_cmap(font)
for cp in lint_config.parse_int_ranges(WIN_ANSI_CODEPOINTS, True):
if cp in cmap:
- tmp_gids.add(font.getGlyphID(cmap[cp], requireReal=True))
+ tmp_gids.add(font.getGlyphID(cmap[cp]))
win_ansi_gids = frozenset(tmp_gids)
font_ymin = None