qt5base-lts/src/gui
Eskil Abrahamsen Blomfeldt 2801db558c Avoid loading and keeping unused fallback font engines
When we request glyphs from fallback fonts, we would potentially
load all fonts on the system into memory. This is especially true
for glyphs that are not supported by any font (or by the last in
the list) in any "Common" script (which e.g. includes CJK).

This would make any application which tried to display unsupported
glyphs use huge amounts of memory for keeping unused fonts cached,
only limited by the number of fonts on the system.

The patch contains two solutions: First, before loading the font,
the multi font engine will be asked whether it needs to be tried
for the given character. By default, this will always be true, so
all fonts will be tried, but with the new font config multi engine
in the platform plugin, it will ask FontConfig whether the font
contains a glyph for the character.

Should the font be loaded and still fail to resolve the character
(which could be the case for other platforms), we will simply
delete it again immediately instead keeping it cached.

Change-Id: I92dfb39289a359f49caa02c2caf8baf66098fb59
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
2012-02-17 05:26:34 +01:00
..
accessible Move all usages of Relation enum values to QAccessible::relations() 2012-02-10 15:21:46 +01:00
egl Remove Symbian specific code from QtGui. 2012-01-31 07:08:20 +01:00
image Redirect libjpeg messages via qWarning 2012-02-16 02:00:12 +01:00
kernel Fix ref counted window close handling. 2012-02-16 01:56:27 +01:00
math3d Remove many deprecated methods 2012-01-31 16:17:55 +01:00
opengl Corrected the size of mipmaps in framebuffer objects. 2012-02-15 17:06:49 +01:00
painting Added static keyword to blend_transformed_tiled_argb/rgb565(). 2012-02-14 02:48:35 +01:00
text Avoid loading and keeping unused fallback font engines 2012-02-17 05:26:34 +01:00
util Add QPlatformServices class. 2012-02-10 22:53:13 +01:00
gui.pro Revert "Put the generated <module>version.h into build tree" 2012-02-01 10:48:09 +01:00