sharpdx / SharpDX

SharpDX GitHub Repository
http://sharpdx.org
MIT License
1.7k stars 639 forks source link

[Question] How do I find out the width of a string before linebreak? #830

Open Syrou opened 7 years ago

Syrou commented 7 years ago

I'm kind of trying to determine how much text fits into a TextLayout before the line break takes place. I'm using SharpDX.Direct2D1 TextLayout and DrawTextLayout, is this possible?