![]() ![]() For the past few releases, we have been shipping skparagraph, even though none of its APIs are exposed to the user yet. Skia offers text layout capabilities via a module named skparagraph. Let me know if you have thoughts on Here's an overview of the current status of this task. There might be text layout JS libraries available already. ![]() If you have a nice layout algorithm available and it’s nicely decoupled, we could use it there too. And you have tokenization/measurement/shaping available as primitives there too. Text layouts are a hot topic there as well. This month, we showed a technical preview of canvaskit-js, a Skia polyfill for the web.Would you be interested in exposing these primitives to JavaScript? I will try to make a new issue summarizing the state of this feature. And we would also need to ship the tokenizer on iOS for it to work. React Native Skia actually already ships with the paragraph module it's just not exposed to the JavaScript side yet. ![]() I do believe that once you have tokenization + single line shaping/measuring, you have strong primitives to build great text layouts yourself. It would be a nice intermediary step to make it available to you. Now, we need this tokenizer to work for us to offer text layouts. We have a PR ( Add Paragraph Tokenizer #1877) whose goal is to offer a tokenizer similar to what Intl offers (see getLineBreaks and getGraphemeBoundaries here: ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |