Skip to content

Commit

Permalink
dwrite color font
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc3839 committed Mar 1, 2024
1 parent 496e050 commit 717d3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TrafficMonitor/TaskBarDlgDrawCommon.cpp
Expand Up @@ -1789,7 +1789,7 @@ void CTaskBarDlgDrawCommon::DrawWindowText(CRect rect, LPCTSTR lpszString, COLOR
{layout_rect.left, layout_rect.top},
p_text_layout.Get(),
m_p_d2d1_device_context_support->GetRawForeSolidColorBruch(),
D2D1_DRAW_TEXT_OPTIONS_NO_SNAP | D2D1_DRAW_TEXT_OPTIONS_CLIP); // 不允许文字超出边界
D2D1_DRAW_TEXT_OPTIONS_NO_SNAP | D2D1_DRAW_TEXT_OPTIONS_CLIP | D2D1_DRAW_TEXT_OPTIONS_ENABLE_COLOR_FONT); // 不允许文字超出边界
// 恢复状态
p_text_format->SetParagraphAlignment(old_vertical_align);
p_text_format->SetTextAlignment(old_horizontal_align);
Expand Down

0 comments on commit 717d3af

Please sign in to comment.