Remove logging
This commit is contained in:
parent
16d899a2be
commit
2c773441cf
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user