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

--- Comment #15 from Viktor Kuzmin <kvas...@gmail.com> ---
It seems that konsole renders lot's of 'spaces' and glyph height is zero in
that case. I've created small hacky patch and performance is OK now. Also I've
not noticed any artifacts. Sorry if I'm mistaken, this is my first time I'm in
touch with qt in any way.

diff -r 6c0e7b4f5bc5 src/gui/text/qfontengine_ft.cpp
— a/src/gui/text/qfontengine_ft.cpp Fri Jul 08 13:10:54 2016 +0300
+++ b/src/gui/text/qfontengine_ft.cpp Fri Jul 08 13:13:55 2016 +0300
@@ -1756,6 +1756,9 @@
Glyph *glyph = loadGlyphFor(glyphIndex, subPixelPosition, neededFormat, t);
+ if (glyph != 0 && glyph->height == 0)
+ return &currentlyLockedAlphaMap;
+
if (offset != 0 && glyph != 0)
*offset = QPoint(glyph->x, glyph>y);

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

Reply via email to