diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2014-11-26 10:12:55 +0000 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2014-12-04 19:21:15 +0100 |
commit | 1edc7554deb557e3045076336e4b036109906db1 (patch) | |
tree | 3e10b56e828206ffe9f7b9f4e27da778aaec5da7 /src/corelib/kernel | |
parent | 33739ccb95b5341bbf8173350a66a766277e9bc1 (diff) |
FreeType: Fix font rendering with fonts with embedded bitmaps
Only reproduced with Windows font Calibri. This font has both
outline (vector) and bitmap glyphs. QFontEngine_FT has an hack
to get metrics from EBLC table, but this might fail, resulting
in a 0 ascender and descender, meaning QFontMetrics::height()
will be 0, meaning totally broken text.
This patch checks for that failure, and fallbacks to the outline
metrics instead of the bitmap ones.
Task-number: QTBUG-42898
Change-Id: If33fc3404d0c7f84557f8c4a5ae71b30f78d60a7
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/corelib/kernel')
0 files changed, 0 insertions, 0 deletions