[systemsettings] [Bug 336089] Font preview - rendering problem
Thomas Lübking via KDE Bugzilla
bugzilla_noreply at kde.org
Sat Jan 9 10:57:55 GMT 2016
https://bugs.kde.org/show_bug.cgi?id=336089
--- Comment #42 from Thomas Lübking <thomas.luebking at gmail.com> ---
Yes, is. Stunning.
The xft image is RGB32 here, may depend on whether it's set to translucent
(though there ARGB32 instead of pre-multiplied is used)
We need this patch tested on all possible GPUs (notably intel/sna!)
diff --git a/kcms/kfontinst/lib/FcEngine.cpp b/kcms/kfontinst/lib/FcEngine.cpp
index 19b7206..6c731dc 100644
--- a/kcms/kfontinst/lib/FcEngine.cpp
+++ b/kcms/kfontinst/lib/FcEngine.cpp
@@ -537,7 +537,7 @@ QImage CFcEngine::Xft::toImage(int w, int h) const
if (!xImage) {
return QImage();
}
- return QImage(xImage->data, xImage->width, xImage->height, xImage->stride,
QImage::Format_ARGB32_Premultiplied, &cleanupXImage, xImage);
+ return QImage(xImage->data, xImage->width, xImage->height, xImage->stride,
QImage::Format_RGB32, &cleanupXImage, xImage);
}
inline int point2Pixel(int point)
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list