Suppress OpenType warning message

This commit is contained in:
Florian Bruhin 2014-06-03 17:04:22 +02:00
parent 298e757991
commit eb426cb870

View File

@ -131,9 +131,10 @@ def qt_message_handler(msg_type, context, msg):
QtFatalMsg: logging.CRITICAL, QtFatalMsg: logging.CRITICAL,
} }
# Suppress some messages because they're well-known. # Suppress some messages because they're well-known.
suppressed_msgs = ['libpng warning: iCCP: Not recognizing known sRGB ' suppressed_msgs = ["libpng warning: iCCP: Not recognizing known sRGB "
'profile that has been edited'] "profile that has been edited",
if msg in suppressed_msgs: "OpenType support missing for script 19"]
if msg.strip() in suppressed_msgs:
return return
# We get something like "void qt_png_warning(png_structp, png_const_charp)" # We get something like "void qt_png_warning(png_structp, png_const_charp)"
# from Qt, but only want "qt_png_warning". # from Qt, but only want "qt_png_warning".