The property MeasuredWith returns the proper with of a RichString if left and right margin are 0.
If I set the left and right margin to 10, it fails (it returns the same width as when it was without margin).
Here I have attached two scenarios, where I render the second parragraph following the first one. The top example is whithout margin. The second one is with a margin of 10 in every direction. I drew the bounding box of the RichString in red. You can clearly see the problem.
The bitmap size was calculated adding the MeassuredWidth of both RichText.
I hope you fix it.
PS: congrats for the great library. I had to start using Skia and I couldn't be happier after I found RichTextKit
The property MeasuredWith returns the proper with of a RichString if left and right margin are 0.
If I set the left and right margin to 10, it fails (it returns the same width as when it was without margin).
Here I have attached two scenarios, where I render the second parragraph following the first one. The top example is whithout margin. The second one is with a margin of 10 in every direction. I drew the bounding box of the RichString in red. You can clearly see the problem. The bitmap size was calculated adding the MeassuredWidth of both RichText.
I hope you fix it.
PS: congrats for the great library. I had to start using Skia and I couldn't be happier after I found RichTextKit