I need to show vertical text in my direct2d application. Following text formatting code rotates the text +90°.
m_textFormat->SetReadingDirection(DWRITE_READING_DIRECTION_BOTTOM_TO_TOP));
m_textFormat->SetFlowDirection(DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT));
But I want to rotate the text +270° like the following:
There are many other options in SetReadingDirection and SetFlowDirection. But none of them is working. The following sample also rotates only +90°: DirectWrite vertical text sample
If I manually rotate the text, it looks blur:
renderTarget->SetTransform(Matrix3x2F::Rotation(m_rotation, Point2F(left + height / 2.0f, top + (bottom - top) / 2.0f)));
Can anyone please help me with this?
Regards,