Skip to content

Commit 008cbf9

Browse files
authored
Merge pull request #1783 from mhqschen/master
dwrite color font
2 parents b58791f + 4169c1f commit 008cbf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TrafficMonitor/TaskBarDlgDrawCommon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,7 @@ void CTaskBarDlgDrawCommon::DrawWindowText(CRect rect, LPCTSTR lpszString, COLOR
18051805
{layout_rect.left, layout_rect.top},
18061806
p_text_layout.Get(),
18071807
m_p_d2d1_device_context_support->GetRawForeSolidColorBruch(),
1808-
D2D1_DRAW_TEXT_OPTIONS_NO_SNAP | D2D1_DRAW_TEXT_OPTIONS_CLIP); // 不允许文字超出边界
1808+
D2D1_DRAW_TEXT_OPTIONS_NO_SNAP | D2D1_DRAW_TEXT_OPTIONS_CLIP | D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT); // 不允许文字超出边界
18091809
// 恢复状态
18101810
p_text_format->SetParagraphAlignment(old_vertical_align);
18111811
p_text_format->SetTextAlignment(old_horizontal_align);

0 commit comments

Comments
 (0)