Summary: | Fix Freetype LCD filtering support | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Nicolas L. <kde> |
Component: | kcm_fonts | Assignee: | rik |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | adaptee, andresbajotierra, anssi.hannula, cfeck, nate |
Priority: | NOR | Keywords: | triaged |
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Do not check for Freetype LCD rendering availability |
Description
Nicolas L.
2009-01-11 01:25:03 UTC
What this patch do ? The real LCD filtering / antialiasing bug was in Qt4, but it's going to be improved on Qt4.5. Take a look at: http://labs.trolltech.com/blogs/2008/09/01/subpixel-antialiasing-on-x11/ (I'm the original author of the patch) KDE4 checks that Freetype has LCD subpixel rendering support before allowing user to enable it. However, QT4 has independent LCD subpixel rendering support (src/gui/text/qfontengine_ft.cpp) which works no matter if Freetype has it or not. The patch removes the check, allowing the user to enable subpixel rendering in all cases. Thanks for the explanation :) Is this bug still present when using Qt 4.5? Is the patch still needed? Yes and yes. (Note that the subject of this bug report is wrong; As per my comment above, the bug is that KDE checks for Freetype LCD filtering support while it is *not* actually relevant, as QT4 has its own filtering implementation) Anssi (or Nicolas), can you commit? As far as I can see (I don't know freetype internals that much), the patch in comment #0 looks good. There is only one thing that I am not sure about: You remove the HAVE_FREETYPE define from the config file. You should make sure it isn't needed by any other module. If it is not, you should also remove (or comment out) the checks for freetype in the CMakeLists.txt, and maybe contact kde-buildsystem mailing list about that change. Thanks! (sorry for the delay) There are no other users of HAVE_FREETYPE in kdebase-workspace. However, freetype is still needed by kfontinst, which is why I didn't remove the check. I don't have KDE commit access; Nicolas, can you commit? Created attachment 66999 [details]
Do not check for Freetype LCD rendering availability
Attached patch against current git master.
Is this still needed with Qt 5? Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Looks like it is still needed. *** This bug has been marked as a duplicate of bug 378504 *** |