[ufoLib] Only write fontinfo.plist when there is content

This commit is contained in:
Nikolaus Waxweiler 2020-04-30 11:11:43 +01:00
parent e70f656d00
commit f30e41b863
2 changed files with 5 additions and 2 deletions

View File

@ -1211,7 +1211,8 @@ class UFOWriter(UFOReader):
if validate:
infoData = validateInfoVersion2Data(infoData)
infoData = _convertFontInfoDataVersion2ToVersion1(infoData)
# write file
# write file if there is anything to write
if infoData:
self._writePlist(FONTINFO_FILENAME, infoData)
# kerning.plist

View File

@ -1,3 +1,5 @@
- [ufoLib] Only write fontinfo.plist when there is content to be had.
4.9.0 (released 2020-04-29)
---------------------------