[android] Fix unicode emoji modifiers.

This commit is contained in:
Mikael Sand
2018-08-09 23:47:46 +03:00
parent 0b7cd5241e
commit 53a917ce9e
@@ -695,12 +695,9 @@ class TSpanShadowNode extends TextShadowNode {
break;
}
String nextLigature = current + String.valueOf(chars[nextIndex]);
boolean hasNextLigature = PaintCompat.hasGlyph(paint, nextLigature);
if (hasNextLigature) {
ligature[nextIndex] = true;
current = nextLigature;
hasLigature = true;
}
ligature[nextIndex] = true;
current = nextLigature;
hasLigature = true;
}
}
double charWidth = paint.measureText(current) * scaleSpacingAndGlyphs;