speed up font enumeration in windows platform
authorjian liang <jianliang79@gmail.com>
Wed, 1 Feb 2012 15:19:46 +0000 (23:19 +0800)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 10:10:04 +0000 (11:10 +0100)
commitb852b019586cd53c2b49848ff2ae703fb0815308
tree04e572a3fc0fdd0ce345fe24709b84aafa686a44
parent4b1ba7c7928b4b326eb83e6df6f0b8fb93f2edf0
speed up font enumeration in windows platform

Currently, font enumeration is very slow in windows platform, it will take
several seconds to enumerate all fonts for the first time. This patch
cache the font information queried from font registry, it can
significantly speed up font enumeration.

Change-Id: Ic783877b7f3db3facf24965b0c5d669b22d40c61
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/plugins/platforms/windows/qwindowsfontdatabase_ft.cpp