Hi, I am working on some functionality in our application that requires the render of single-stroke fonts for cutting.
Unfortunately android cannot display such fonts correctly, so we use the
library to render individual glyphs as a sequence of vector paths.Now I'm looking for an option how this can be integrated into the pipeline of the standard android input system, and with the Compose(I'm considering CoreTextField).
In the case of working with a regular
, it seems to me that I will need to rewrite everything from scratch(cursor, line break, context menu, text selection, etc.).But since the Compose has platform(android, desktop) implementations of text input, that means it uses abstractions around working with text. Which means it is should be possible to change implementation.
I found an abstraction like Paragraph and its platform implementation for Android AndroidParagraph, which under the hood uses the TextLayout wrapper for StaticLayout class.
And a MultiParagraph class that uses the above Paragraph.I would like to replace the implementation for the
with my own but it seems that I do not see how this could be done. I would be apprecited any help.