pgStyle.setEllipsis(u"\u2026");
pgStyle.setMaxLines(1);
pgStyle.setTextAlign(skia::textlayout::TextAlign::kLeft);
input: string strTest = "Hello world testwordingwithoutspaceandisVeryLog";
and the output is:
what I want is like:

I debugged and found the longest line is not right.
Any ideas?
Thanks.