SKIA text baseline vs. Break at Rect

hi all,

I do not quite understand how skia’s text baseline works when the rectangle clips off text. The rect scaling seems to influence the baselines; please see the attached patch:

baseline.vl (7.7 KB)

BreakAtRect won’t care about the alignment of the rectangle (topleft), but will try to fit the Paragraph in using the paragraph’s vertical/horizontal alignment. This might be 4 lines or 5 lines for you, and the first line won’t stay in the same place as the default vertical alignment is set to be centered.

Set the vertical alignment to Top and you will get the result that you probably expect: