The tst_QFont::italicOblique() test is testing whether a request for an "Oblique" font in the presence of an italic one (or vice versa) may return the other as a second-best match. However, it did not consider the fact that some fonts may not be marked as italic even if the style name contains the word "italic". One instance of this are variable fonts with oblique instances. In this case we currently do not correctly recognize the fonts as oblique. But there is nothing preventing someone from creating a normal font that has "italic" in the style name and not setting it as italic in the OS/2 table (maybe the style name is "non-italic"), so we can't really depend on this. This makes the test a bit more robust by checking if the actual font stored in the database is italic and verifying a match with the requested oblique font. There are still cases that might fail here, but we don't need to address those unless they actually appear. Pick-to: 6.5 Fixes: QTBUG-131108 Task-number: QTBUG-131262 Change-Id: I9ae0d37d378e8fec2be524db203dcea9a881f15a Reviewed-by: Rami Potinkara <rami.potinkara@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 957e2be00a5c45223a5ef842a5f9f2f7b7be882b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> |
||
|---|---|---|
| .. | ||
| auto | ||
| baseline | ||
| benchmarks | ||
| global | ||
| libfuzzer | ||
| manual | ||
| shared | ||
| testserver | ||
| CMakeLists.txt | ||
| README | ||
README
This directory contains autotests and benchmarks based on Qt Test. In order
to run the autotests reliably, you need to configure a desktop to match the
test environment that these tests are written for.
Linux X11:
* The user must be logged in to an active desktop; you can't run the
autotests without a valid DISPLAY that allows X11 connections.
* The tests are run against a KDE3 or KDE4 desktop.
* Window manager uses "click to focus", and not "focus follows mouse". Many
tests move the mouse cursor around and expect this to not affect focus
and activation.
* Disable "click to activate", i.e., when a window is opened, the window
manager should automatically activate it (give it input focus) and not
wait for the user to click the window.