swh:1:snp:673156c31a876c5b99b2fe3e89615529de9a3c44
Revision a67a905190b85b53c30c9cb800b5e282d9364179 authored by Eskil Abrahamsen Blomfeldt on 26 January 2016, 13:45:46 UTC, committed by Eskil Abrahamsen Blomfeldt on 26 January 2016, 14:14:34 UTC
For non-scalable fonts, the units_per_EM in FreeType is
documented to be undefined and will default to 0, which means
that any division by it will cause an exception.

The emSquareSize() function already checks if the font is scalable
and returns y_ppem if not, so lets use it instead in all locations
where we're not already sure the font is scalable.

[ChangeLog][Text][Freetype] Fixed a divide-by-zero exception
when accessing bitmap fonts.

Change-Id: I8839d4c83047fb3f6bb4d69af0258e94a258a4d9
Task-number: QTBUG-45963
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
1 parent ba7f76d
History
Tip revision: ed928cee1233aee003610d5fadb56bdaeffbd7b2 authored by Jake Petroules on 22 September 2016, 17:55:20 UTC
Suppress deprecated warnings for some QSysInfo members
Tip revision: ed928ce
File Mode Size
bin
config.tests
dist
doc
examples
lib
mkspecs
qmake
src
tests
tools
util
.gitattributes -rw-r--r-- 151 bytes
.gitignore -rw-r--r-- 7.3 KB
.qmake.conf -rw-r--r-- 158 bytes
.tag -rw-r--r-- 12 bytes
INSTALL -rw-r--r-- 521 bytes
LGPL_EXCEPTION.txt -rw-r--r-- 1.2 KB
LICENSE.FDL -rw-r--r-- 22.4 KB
LICENSE.GPLv3 -rw-r--r-- 34.8 KB
LICENSE.LGPLv21 -rw-r--r-- 26.2 KB
LICENSE.LGPLv3 -rw-r--r-- 8.0 KB
LICENSE.PREVIEW.COMMERCIAL -rw-r--r-- 31.4 KB
configure -rwxr-xr-x 248.0 KB
configure.bat -rw-r--r-- 3.7 KB
header.BSD -rw-r--r-- 1.9 KB
header.COMM -rw-r--r-- 804 bytes
header.FDL -rw-r--r-- 1.2 KB
header.LGPL-ONLY -rw-r--r-- 936 bytes
header.LGPL21 -rw-r--r-- 1.5 KB
header.LGPL3 -rw-r--r-- 1.7 KB
header.LGPL3-COMM -rw-r--r-- 1.2 KB
qtbase.pro -rw-r--r-- 6.3 KB
sync.profile -rw-r--r-- 3.2 KB

back to top