Use QFontDatabase to check if a font is scalable.
authorYoann Lopes <yoann.lopes@digia.com>
Fri, 22 Nov 2013 17:52:22 +0000 (18:52 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 25 Nov 2013 16:33:03 +0000 (17:33 +0100)
commit87da2a2526aa03dd43254730a6e675e83c7c1342
tree01b372fc795e29b24f4cb8eae76e0beaa80e5371
parent2331a5ef5765d1b99472cd05e1af4b84d59c0177
Use QFontDatabase to check if a font is scalable.

The flag set in QFontEngine was not always correctly set, use
QFontDatabase instead which is slower but should always be correct.
We fallback to native font rendering when the font is not scalable.

Change-Id: Ie9a2397abd42890d0fb05bc2f9c46a60040296f2
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/quick/items/qquicktextnode.cpp