qt5base-lts/tests/auto/gui/text
Eskil Abrahamsen Blomfeldt 50cd0daf29 Fix kerned advances in QRawFont on OS X and Windows
On Windows, the wrong value was used to calculate the
design-to-device scale. The assumption has been that tmHeight
in the TEXTMETRIC is the pixel size of the em square, but
it is not, it's the height of the font (ascent + descent).
The pixel size of the font is defined to be the em square size
in pixels.

On OS X, the kerning data was never actually read from the
font. I've added a lazy initialization for this similar to
the one in the FT engine.

This was discovered when investigating QTBUG-48546, as it turned
out that the kerning information extracted by Qt in this case was
different from the one used by Harfbuzz.

I've changed testfont.ttf to kern "_2" so that the digit is positioned
directly on top of the underscore and constructed a test.

[ChangeLog][QRawFont] Fixed kerning on advances in QRawFont for
OS X and Windows.

Change-Id: Ic9a321ad119ea880cef89b861c75a820ab8d3182
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2015-11-25 19:53:46 +00:00
..
qabstracttextdocumentlayout Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qcssparser tests/auto/gui: Remove some placeholder formatting. 2015-10-19 08:06:53 +00:00
qfont tests/auto/gui: Remove some placeholder formatting. 2015-10-19 08:06:53 +00:00
qfontcache Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qfontdatabase Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qfontmetrics Merge remote-tracking branch 'origin/5.6' into dev 2015-10-14 15:45:35 +02:00
qglyphrun Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qrawfont Fix kerned advances in QRawFont on OS X and Windows 2015-11-25 19:53:46 +00:00
qstatictext Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qsyntaxhighlighter Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qtextblock Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qtextcursor Tests: Use QCOMPARE() with QLatin1String() for QString values. 2015-10-14 08:32:42 +00:00
qtextdocument tests/auto/gui: Remove some placeholder formatting. 2015-10-19 08:06:53 +00:00
qtextdocumentfragment tests/auto/gui: Remove some placeholder formatting. 2015-10-19 08:06:53 +00:00
qtextdocumentlayout Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qtextformat Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qtextlayout Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
qtextlist Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qtextobject Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qtextodfwriter tests/auto/gui: Remove some placeholder formatting. 2015-10-19 08:06:53 +00:00
qtextpiecetable tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextscriptengine Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
qtexttable Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
qzip QZip*: don't hold QZipReader::FileInfo in QList 2015-07-19 10:35:41 +00:00
text.pro Fix the font engines leaking 2013-03-20 07:02:29 +01:00