https://bugs.kde.org/show_bug.cgi?id=432320
Fushan Wen <qydwhotm...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Latest Commit| |https://invent.kde.org/plas | |ma/plasma-workspace/-/commi | |t/499e096d87d38ae4b9b194797 | |520aaaf2450f33f --- Comment #11 from Fushan Wen <qydwhotm...@gmail.com> --- Git commit 499e096d87d38ae4b9b194797520aaaf2450f33f by Fushan Wen, on behalf of Du Yijie. Committed on 16/03/2024 at 12:39. Pushed by fusionfuture into branch 'Plasma/6.0'. kcm_fonts: add subpixel and hinting previews This commit adds subpixel and hinting previews to kcm_fonts under Wayland. To properly support fractional scaling, PreviewRenderEngine now querys the scale from focus window, which returns the right scale for the currently active window (which should be the font settings page when the dropdown is clicked), rather than the primary screen which can only return the next higher integer scale. The DPI query is changed to query the active window's QScreen rather than X11. The naive reenablement has a bug where the preview image's size will grow larger than the bounding box of the preview text. It turns out that QImage::setDevicePixelRatio adds margins to the image, and removing that call solves the issue somehow. There are some minor display issues like the preview being blurry under fractional scales, but it at least works. Somehow. (cherry picked from commit be7af9da65375d2dc76962d5bd25b8a525f3174e) M +0 -3 kcms/fonts/previewimageprovider.cpp M +5 -7 kcms/fonts/previewrenderengine.cpp https://invent.kde.org/plasma/plasma-workspace/-/commit/499e096d87d38ae4b9b194797520aaaf2450f33f -- You are receiving this mail because: You are watching all bug changes.