summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-02-18 09:18:49 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2011-03-14 10:28:09 (GMT)
commit57bda4d3139edeb76689ac64a8c36e5551093bf9 (patch)
treec3d911e178e94acdb0018338ed02d43b12fb0a03 /src/3rdparty
parentc0fed43b04dec8bd549043d3ea5e28908128082c (diff)
downloadQt-57bda4d3139edeb76689ac64a8c36e5551093bf9.zip
Qt-57bda4d3139edeb76689ac64a8c36e5551093bf9.tar.gz
Qt-57bda4d3139edeb76689ac64a8c36e5551093bf9.tar.bz2
Fix combining marks shaping without GPOS feature in HarfBuzz
For certain OpenType fonts like DejaVu Sans Mono, not all combining marks has GPOS feature applied, U+0062 U+0332 is one of the case. Only getting the advances for indivivual glyphs is not enough, we should also do heuristic positioning to put the combining mark in the right place. Task-number: QTBUG-15675 Reviewed-by: Lars Knoll
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp b/src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp
index ef86144..6c4d9f1 100644
--- a/src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp
+++ b/src/3rdparty/harfbuzz/src/harfbuzz-shaper.cpp
@@ -1232,7 +1232,7 @@ HB_Bool HB_OpenTypePosition(HB_ShaperItem *item, int availableGlyphs, HB_Bool do
}
if (!face->glyphs_substituted && !glyphs_positioned) {
- HB_GetGlyphAdvances(item);
+ HB_HeuristicPosition(item);
return true; // nothing to do for us
}