I try to understand the use of drawTextRun
, but can't find how they differ from the normal drawText
in canvas
The below codes
canvas.drawTextRun(TEXT,
0, TEXT.length,
0, TEXT.length ,
x, y, false, paint)
canvas.drawText(TEXT,
x, y, paint)
produces the same result. I try to play around the 0
and TEXT.length
, but see not distinct different other than showing a shorter TEXT
.
It's description is
Draw a run of text, all in a single direction, with optional context for complex text shaping.
What is complex text shaping
?