With Direct2D, I can use ID2D1RenderTarget::DrawText to draw text, but how can I get the text extent before I draw? Note that I wish to do this under Windows 8 RT.
Thanks
With Direct2D, I can use ID2D1RenderTarget::DrawText to draw text, but how can I get the text extent before I draw? Note that I wish to do this under Windows 8 RT.
Thanks
Thanks for the feedback. I have found the solution. I needed to create a IDWriteTextLayout for the text block and then call it's GetMetrics method which will return the extent of the text.
Thanks again for the help.