Public bug reported:

After I had upgraded my system from dapper to edgy. Not all of them but
some Qt based applications are too slow (such as Qt Designer). I have a
suspect that the problem is about the font operations.

I wrote a small python script which increments the pointsize of a font
and retrieves its character height. I sent it to my friends. People who
are using edgy, ran this program in about 20 seconds. People who are
using other distros ran it in less than 1 second.

I can't figure out why this problem occurs, but I didn't have this
problem when I was using dapper.

Here's the small python script
-------------------------------------------
# -*- coding: utf-8 -*-

from qt import *

def createFontMap():
        minPointSize = 1
        maxPointSize = 76

        font = QFont()

        fontMap = []

        for pointSize in xrange(minPointSize, maxPointSize + 1):

            font.setPointSize(pointSize)
            fontMetrics = QFontMetrics(font)
            fontHeight = fontMetrics.height()
            fontMap.append((pointSize, fontHeight))

        return fontMap


a = QApplication([])

createFontMap()

** Affects: Ubuntu
     Importance: Undecided
         Status: Unconfirmed

-- 
Qt is too slow in font operations
https://launchpad.net/bugs/76766

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to