Skip to content

Commit e414613

Browse files
Fabrice Di MeglioAndroid (Google) Code Review
authored andcommitted
Merge "Fix bug #5901103 all_source_project_146981_Android - Android ICS LQA Regression:FA, AR, HE and TH - Font Corruption"
2 parents 6de8b47 + 3941a22 commit e414613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/android/graphics/TextLayoutCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ size_t TextLayoutEngine::shapeFontRun(const SkPaint* paint, bool isRTL) {
811811
case HB_Script_Hebrew:
812812
case HB_Script_Bengali:
813813
case HB_Script_Thai:{
814-
const uint16_t* text16 = (const uint16_t*)mShaperItem.string;
814+
const uint16_t* text16 = (const uint16_t*)(mShaperItem.string + mShaperItem.item.pos);
815815
SkUnichar firstUnichar = SkUTF16_NextUnichar(&text16);
816816
baseGlyphCount = paint->getBaseGlyphCount(firstUnichar);
817817
break;

0 commit comments

Comments
 (0)