Harfbuzz-thai - When calling HB_OpenTypePosition we must set doLogClusters to true for thai
This bug resulted in word wrapping not working correctly for thai. Reviewed-by: Adrian Yanes <ext-adrian.yanes@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com> (cherry picked from commit 7495f2c7c55917a98c903547858be923028b7827) Change-Id: Iedb26a10078c6cc4e90d090176ab63499293d69d Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
This commit is contained in:
parent
5b4a44f83d
commit
c065ac562a
2
src/3rdparty/harfbuzz/src/harfbuzz-thai.c
vendored
2
src/3rdparty/harfbuzz/src/harfbuzz-thai.c
vendored
@ -353,7 +353,7 @@ HB_Bool HB_ThaiShape (HB_ShaperItem *shaper_item)
|
|||||||
const int availableGlyphs = shaper_item->num_glyphs;
|
const int availableGlyphs = shaper_item->num_glyphs;
|
||||||
if ( HB_SelectScript (shaper_item, thai_features) ) {
|
if ( HB_SelectScript (shaper_item, thai_features) ) {
|
||||||
HB_OpenTypeShape (shaper_item, /*properties*/0);
|
HB_OpenTypeShape (shaper_item, /*properties*/0);
|
||||||
return HB_OpenTypePosition (shaper_item, availableGlyphs, /*doLogClusters*/false);
|
return HB_OpenTypePosition (shaper_item, availableGlyphs, /*doLogClusters*/true);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user