Direct2D實現文字的描邊和填充

一、實現思路 通過繼承IDWriteTextRenderer定義自己的文本渲染類並重寫DrawGlyphRun方法,最終將該類實例作爲 IDWriteTextLayout::Draw的參數傳入進行文本的繪製。 二、代碼實現 1、自定義文本渲染類 class CustomTextRenderer : public IDWriteTextRenderer { protected: ULONG m_c
相關文章
相關標籤/搜索