Remove logging

This commit is contained in:
Nikolaus Waxweiler 2022-07-05 16:09:37 +01:00
parent 16d899a2be
commit 2c773441cf

View File

@ -1284,17 +1284,10 @@ def setRibbiBits(font):
english_ribbi_style = font["name"].getName(2, 3, 1, 0x409)
if english_ribbi_style is None:
log.warning(
"Cannot set RIBBI bits because there is no Windows Unicode BMP name ID 2."
)
return
styleMapStyleName = english_ribbi_style.toStr().lower()
if styleMapStyleName not in {"regular", "bold", "italic", "bold italic"}:
log.warning(
"Cannot set RIBBI bits because the Windows Unicode BMP name ID 2 is "
"something other than Regular/Italic/Bold/Bold Italic."
)
return
if styleMapStyleName == "bold":