【发布时间】:2019-03-07 11:51:09
【问题描述】:
我需要在我的 direct2d 应用程序中显示垂直文本。以下文本格式代码将文本旋转 +90°。
m_textFormat->SetReadingDirection(DWRITE_READING_DIRECTION_BOTTOM_TO_TOP));
m_textFormat->SetFlowDirection(DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT));
但我想将文本旋转 +270°,如下所示:
SetReadingDirection 和 SetFlowDirection 中还有许多其他选项。但他们都没有工作。以下示例也仅旋转了 +90°:DirectWrite vertical text sample
如果我手动旋转文本,它看起来很模糊:
renderTarget->SetTransform(Matrix3x2F::Rotation(m_rotation, Point2F(left + height / 2.0f, top + (bottom - top) / 2.0f)));
谁能帮我解决这个问题?
问候,
【问题讨论】:
-
directx-11 标记在这里看起来不相关。
-
如果我用 Transform => Test DiretWritte rotated 旋转它,它对我来说似乎并不模糊
标签: directx-11 direct2d directwrite