Update warning message [skip ci]
This commit is contained in:
parent
a2efac012c
commit
96c9250cf8
@ -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
|
||||
|
@ -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])
|
||||
|
Loading…
x
Reference in New Issue
Block a user