There are two problems with the current code concerning text wrapping:
Headings are wrapped at the wrong position because TextRegion always uses the normal text font to compute the wrap position but the font of a heading is usually larger than that.
Links are not wrapped at all. Shouldn't the code use the RenderLine() function like the other text elements do?
There are two problems with the current code concerning text wrapping:
TextRegion
always uses the normal text font to compute the wrap position but the font of a heading is usually larger than that.RenderLine()
function like the other text elements do?