I couldn't find an example of a block of text not rendered to a rectangular area.
Ideally, it would be nice if ID2D1HwndRenderTarget.DrawText()
would let me provide a polygon Geometry
instead of a rectangle.
I've tried adding a Direct2D Layer with contentBounds
, thinking it might skip rendering text within those layers. It didn't work as expected, it just blocked render to the area still emulating text underneath.
I've also tried applying a rectangular area to hwnd
window itself. It too blocked render but didn't shift text.