qt6-bb10/src/printsupport
Eskil Abrahamsen Blomfeldt 2f5695bed5 Fix printing with unhinted fonts
On high-dpi displays or when you explicitly select an unhinted font,
we pick a DirectWrite font engine. This hit an uncovered code path
on Windows, because we relied on being able to get the HFONT from
the font engine.

To fix this, we introduce an alternative code path which gets the
HFONT based on the DirectWrite font when this font engine is active.

[ChangeLog][Windows] Fixed an issue where the characters in printed
text would look too small.

Pick-to: 6.1 6.2
Fixes: QTBUG-95720
Change-Id: Ifd609e92512e1f25f0ee2aace35cb5ccedf09030
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2021-08-16 20:20:26 +02:00
..
dialogs Windows: Read page size and orientation from setup dialog 2021-06-16 13:22:18 +02:00
doc Doc: Add disclaimer about QtPrintSupport not being available on iOS 2021-06-09 15:56:01 +00:00
kernel Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platform Fix printing with unhinted fonts 2021-08-16 20:20:26 +02:00
widgets Remove the qmake project files 2021-01-07 15:32:28 +01:00
CMakeLists.txt CMake: Use QtBase_SOURCE_DIR instead of QT_SOURCE_TREE 2021-07-12 18:56:14 +02:00
configure.cmake Remove winrt 2020-06-06 20:25:49 +02:00
qt_cmdline.cmake CMake: Re-implement configure/qmake's command line handling in CMake 2020-08-17 08:08:20 +02:00