SkTextBlobBuilderRunHandler builder(str, { 0, 0 });
auto bidi = SkShaper::TrivialBiDiRunIterator(0, len);
auto language = SkShaper::TrivialLanguageRunIterator("ar-SA", len);
constexpr SkFourByteTag latn = SkSetFourByteTag('l', 'a', 't', 'n');
auto script = SkShaper::TrivialScriptRunIterator(latn, len);
auto fontIterator = SkShaper::TrivialFontRunIterator(skfont, len);
shaper->shape(str, len, fontIterator, bidi, script, language, 2000, &builder);
canvas->drawTextBlob(builder.makeBlob(),xx, yy, skPaint);
But when I try to write our arabic strings, it's still in the wrong direction.
Is there any attribute or property what I have to set in the method?
Unfortunately there is no documentation about SkShaper.
I would really very glad when somebody could help me.
BR, Heidi