Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/ufo2ft/postProcessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def process_glyph_names(self, useProductionNames=None):
useProductionNames = self.ufo.lib.get(
USE_PRODUCTION_NAMES,
not self.ufo.lib.get(GLYPHS_DONT_USE_PRODUCTION_NAMES)
and self._postscriptNames is not None,
and self._postscriptNames,
)
else:
keepGlyphNames = True
Expand Down
6 changes: 6 additions & 0 deletions tests/outlineCompiler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,12 @@ def test_compile_with_custom_postscript_names_notdef_preserved(
"lll",
]

def test_empty_postscript_names_no_rename(self, testufo):
testufo.lib["public.postscriptNames"] = {}
original_order = compileTTF(testufo, useProductionNames=False).getGlyphOrder()
result = compileTTF(testufo).getGlyphOrder()
assert result == original_order

def test_warn_name_exceeds_max_length(self, testufo, caplog):
long_name = 64 * "a"
testufo.newGlyph(long_name)
Expand Down
Loading