The third parameter is the height parameter. I should have typed TextArea1.height, but it works anyway as long as it’s a number larger than the text height.
You could also just do:
stp.DrawBlock 0, 0 ,100
Point is, it all works fine for me in Mac, not in Windows.
StyledTextPrinter stopped working properly on Windows with the switch to DirectWrite/Direct2D in 2016r4. I’m not sure if this is something we will be able to fix.
[quote=430377:@Markus Winter]
Wouldnt it be more helpful to show him how to do it in a different way? Just as an idea?
Or can it not be done in Xojo?[/quote]
You can duplicate this by going thru each StyleRun and using DrawString… it can be a bit complicated, but it can be done… Somewhere around here I think I have a method to do just that… but I’d have to find it