diff --git a/Lib/fontTools/ttLib/ttFont.py b/Lib/fontTools/ttLib/ttFont.py index 2e04b0a01..b78be1984 100644 --- a/Lib/fontTools/ttLib/ttFont.py +++ b/Lib/fontTools/ttLib/ttFont.py @@ -493,7 +493,7 @@ class TTFont(object): # Can happen when 'post' format 1 is improperly used on a font that # has more than 258 glyphs (the lenght of 'standardGlyphOrder'). # - log.warning("'post' table format 1 discarded; font has more than 258 glyphs") + log.warning("Not enough names found in the 'post' table, generating them from cmap instead") self._getGlyphNamesFromCmap() else: self.glyphOrder = glyphOrder diff --git a/Tests/ttLib/ttFont_test.py b/Tests/ttLib/ttFont_test.py index a97d6dbc1..eded20164 100644 --- a/Tests/ttLib/ttFont_test.py +++ b/Tests/ttLib/ttFont_test.py @@ -152,7 +152,7 @@ def test_getGlyphOrder_not_true_post_format_1(caplog): assert len(hmtx.metrics) > len(standardGlyphOrder) log_rec = caplog.records[-1] assert log_rec.levelname == "WARNING" - assert "'post' table format 1 discarded" in log_rec.message + assert "Not enough names found in the 'post' table" in log_rec.message @pytest.mark.parametrize("lazy", [None, True, False])