On Monday 17 November 2014 13:04:01 šumski wrote:
I don't have the Qt4 sources locally (so can't check when is that invoked), but QFontEngineFT::loadGlyph depends on FT_CONFIG_OPTION_SUBPIXEL_RENDERING during compile time. Maybe it is unused these days...
Hm, that's very interesting point. You are right, in Qt sources it looks like this: #if defined(FT_LCD_FILTER_H) && defined(FT_CONFIG_OPTION_SUBPIXEL_RENDERING) #define QT_USE_FREETYPE_LCDFILTER #endif which is used later in loadGlyph to switch between freetype and some other crazy method of rendering. Surprisingly, looks like that other crazy method is quite good, I was not able to notice the difference between custom-built freetype version and original source. There is another interesting patch in libqt4 packages: https://build.opensuse.org/package/view_file/openSUSE:13.2/libqt4/use-freety... Is it possible to do the same for qfontengine_ft.cpp to switch between those code blocks in runtime instead of compile-time? PS: Hrvoje, thanx for backporting QTBUG41590.patch to libqt5-qtbase, that one was extremely annoying. -- Regards, Stas -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org