SkFont::measureText() with kUTF8 encoding adds up the default advance
width for each glyph that each codepoint maps to by default in the
font's character mapping table. It makes no attempt at text shaping or
layout. It is very low level and relying on it to measure a string of
text is likely not what is desired in any event. If this is really
what you want to do, you'll probably want SkFont::textToGlyphs and
then SkFont::getWidths to get the advance widths of the individual
glyphs. However, this will not do shaping and isn't generally useful
except for strings and fonts which are known constants (like in
tests). Generally one would want to use SkShaper in some way to do
full text shaping and then draw positioned glyphs.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/skia-discuss/CA%2B_KjGZhWUw8dyd1osSWpiB2Y2rENX9oz-4X3bqmdL12hc-bWg%40mail.gmail.com.