https://bugs.kde.org/show_bug.cgi?id=524784

--- Comment #3 from [email protected] ---
Essentially the problem seems to be that painter.drawText when called with
multi-char text doesn't draw the same width as the character spacing does. I
could fix the problem by applying the following to
src/terminalDisplay/TerminalPainter.cpp:1258

        //painter.drawText(rect.x(), y, text);
        for (int i = 0; i < text.toUcs4().length(); i++) {
            //QString character = QString::fromUcs4(text.toUcs4()[i], 1);
            QString character = text[i];
            painter.drawText(rect.x() + i *
m_parentDisplay->terminalFont()->fontWidth(), y, character);
        }

I'm sure this code is not valid for any case but the simplest, but it fixed the
spacing in the example python script.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to