Better errorhandling for the fontengine on WINCE.

The CE fontengine only supports translations, scaled
Text would only work if its an isometric scale and would
require to create a new font from the old one. Rotations
and more aren't supported at all. The freetype fontengine
for CE supports this, so we give a warning that the font
might be rendered incorrect, but could render correct with
the freetype engine.

Task-number: QTBUG-32189

Change-Id: I3581c3fef8e4ee118c0038a6ccc237e66b583731
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Bjoern Breitmeyer 2013-07-18 13:51:08 +02:00 committed by The Qt Project
parent 183cc501d6
commit 07bc530250

View File

@ -1128,11 +1128,10 @@ QWindowsNativeImage *QWindowsFontEngine::drawGDIGlyph(HFONT font, glyph_t glyph,
}
#else // else wince
unsigned int options = 0;
#ifdef DEBUG
Q_ASSERT(!has_transformation);
#else
Q_UNUSED(has_transformation);
#endif
if (has_transformation) {
qWarning() << "QWindowsFontEngine is unable to apply transformations other than translations for fonts on Windows CE."
<< "If you need them anyway, start your application with -platform windows:fontengine=freetype.";
}
#endif // wince
QWindowsNativeImage *ni = new QWindowsNativeImage(iw + 2 * margin + 4,
ih + 2 * margin + 4,