高对比度文字加入抗锯齿,描边禁用提亮功能

Signed-off-by: lili(@lili-lili-lili) <lili304@h-partners.com>
This commit is contained in:
lili(@lili-lili-lili) 2024-10-21 21:09:21 +08:00
parent 7013dedaf8
commit 7faf9af0b0

View File

@ -1630,7 +1630,8 @@ void DrawTextBlobOpItem::DrawHighContrast(Canvas* canvas, bool offScreen) const
// draw outline stroke with pen
Drawing::Pen outlinePen;
outlinePen.SetColor(flag ? Color::COLOR_WHITE : Color::COLOR_BLACK);
outlinePen.SetAntiAlias(false);
outlinePen.SetAntiAlias(true);
outlinePen.SetBlenderEnabled(false);
canvas->AttachPen(outlinePen);
offScreen ? canvas->DrawTextBlob(textBlob_.get(), 0, 0) : canvas->DrawTextBlob(textBlob_.get(), x_, y_);