From 6fdf05d0d6b411370f3a7cd5f8ee8cb6ea6ff324 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Thu, 8 Mar 2018 00:53:50 +0100 Subject: [PATCH] uistyle: Ignore format code for Monospace Since the current rendering engine does not easily support switching fonts in the middle of a message, we can't currently support the Monospace format code as specified in [1]. However, to avoid weird artifacts when other clients send this, ignore the format code for now. [1] https://modern.ircdocs.horse/formatting.html#monospace Closes GH-342. --- src/uisupport/uistyle.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index 831c76eb..dfb32dff 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -757,6 +757,9 @@ QString UiStyle::mircToInternal(const QString &mirc_) case '\x09': mirc += " "; break; + case '\x11': + // Monospace not supported yet + break; case '\x12': case '\x16': mirc += "%R"; -- 2.20.1