toptensoftware / RichTextKit

Rich text rendering for SkiaSharp
Other
366 stars 73 forks source link

[Question or Feature Request] How to determine "overbounds"? #82

Closed dbriard closed 1 year ago

dbriard commented 1 year ago

EDIT: Solved, I found MeasureOverhang on TextBlock and it look like what I needed.

Is there a way to compute the border around the measured width/height of a document (with multiple styles)?

I don't know if it is already computed somewhere in the code and if that could be read easily? That could be useful to adjust the clipping rectangle of my text element.

Thank you for any help!