qt5base-lts/src/gui
Jiang Jiang a56ee60791 Fix FreeType glyph caching for high resolution
For high resolution or extremely large font sizes, the advance
cached here is likely to overflow, since FreeType returns 26.6
fixed point value and we only take signed char here for advance.

In those cases we should skip caching because there won't be
that many big glyphs after all.

Also move the metrics caching block a bit down to take glyph
embolden and oblique into account.

As a result we also don't need to increase the linearAdvance
size because any linearAdvance less than 128 should fit in
the old 10.6 fixed format.

Change-Id: Ic4920ada49954ce1e0a8673c9f33f30e385e3046
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
2012-05-18 10:39:49 +02:00
..
accessible Merge branch 'docs-refactoring' into master 2012-05-10 09:11:23 +02:00
animation Move variant animation interpolators from QtWidgets to QtGui 2012-03-13 06:08:51 +01:00
doc enable the text layout's cache where it is seems to be missed 2012-05-16 19:38:01 +02:00
image QJpegHandler: add an embedded text support 2012-05-16 04:24:50 +02:00
kernel Avoid qobject_cast 2012-05-18 10:37:33 +02:00
math3d QtGui: make some constructors explicit 2012-03-14 08:04:12 +01:00
opengl Merge branch 'docs-refactoring' into master 2012-05-10 09:11:23 +02:00
painting Clean up some QT_HAVE_xxx macros in qcompilerdetection.h 2012-05-18 10:33:56 +02:00
text Fix FreeType glyph caching for high resolution 2012-05-18 10:39:49 +02:00
util Doc: Fix \sa usage 2012-05-11 01:42:02 +02:00
gui.pro Doc: Add "make docs" targets for libraries. 2012-05-09 08:37:35 +02:00