Update warning message [skip ci]

This commit is contained in:
Miguel Sousa 2022-08-31 08:52:17 -07:00
parent a2efac012c
commit 96c9250cf8
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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])