From a238ed2c318e04babee1f14932e080cb925f1544 Mon Sep 17 00:00:00 2001 From: ftCLI Date: Tue, 5 Nov 2024 17:10:39 +0100 Subject: [PATCH] Remove '.notdef' glyph handling code --- Lib/fontTools/ttLib/reorderGlyphs.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Lib/fontTools/ttLib/reorderGlyphs.py b/Lib/fontTools/ttLib/reorderGlyphs.py index 0e4a99fc1..72a7cce15 100644 --- a/Lib/fontTools/ttLib/reorderGlyphs.py +++ b/Lib/fontTools/ttLib/reorderGlyphs.py @@ -258,12 +258,6 @@ def reorderGlyphs(font: ttLib.TTFont, new_glyph_order: List[str]): f"* only in old: {set(old_glyph_order) - set(new_glyph_order)}" ) - # Glyph 0 must be assigned to a .notdef glyph. - # https://learn.microsoft.com/en-us/typography/opentype/spec/recom#glyph-0-the-notdef-glyph - if ".notdef" in new_glyph_order: - new_glyph_order.remove(".notdef") - new_glyph_order.insert(0, ".notdef") - # Changing the order of glyphs in a TTFont requires that all tables that use # glyph indexes have been fully. # Cf. https://github.com/fonttools/fonttools/issues/2060