[Interest] Font rendering depending on the QPA plugin?

Allan Sandfeld Jensen kde at carewolf.com
Fri Oct 7 19:37:15 CEST 2016


On Friday 07 October 2016, Michał 'Khorne' Lowas-Rzechonek wrote:
> Hi Sergio,
> 
> Thanks for the response.
> 
> On 07/10/16 14:46, Sérgio Martins wrote:
> > I would recommend you use the same font database before proceeding
> > further with debugging.
> 
> A good suggestion indeed!
> 
> Ok, so all plugins I mentioned refer to QGenericUnixFontDatabase, which
> indeed maps to either QFontconfigDatabase or QBasicFontDatabase,
> depending on -fontconfig flag. So I would say all of them use the same
> font database.
> 
> > If you compile with -no-fontconfig, does the xcb qpa render the same
> > as your custom qpa ?
> 
> I've just rebuilt all plugins with fontconfig disabled ('./configure
> -no-fontconfig'), verified that resulting .so files do not link to
> fontconfig at all, while previously they did.
> 
> Unfortunately the rendering is still bad :(
> 
> > If you make your qpa support fontconfig, does it render the same as
> > xcb+fontconfig ?
> 
> Previously I've been using system-wide Qt (built by Gentoo) with
> fontconfig enabled. My plugin is included in the same source tree
> (src/plugins/platforms/my_qpa), so it uses the same settings as the rest
> of Qt.
> 
> In the end, flipping the '-(no)-fontconfig' doesn't seem to have any
> effect at all.
> 
Have you made sure your fonts are configured with fontconfig? 

QPA plugins can read font-settings from the system overriding the normal 
defaults. For the XCB plugin that mostly means reading old GTK2 style font 
settings.

`Allan



More information about the Interest mailing list