Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1487dc8

Browse files
committed
[[ Bug 20839 ]] Fix font rendering appearance in HTML5
1 parent 690a446 commit 1487dc8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

docs/notes/bugfix-20839.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix font rendering in HTML5

libgraphics/src/harfbuzztext.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ void MCGContextDrawPlatformText(MCGContextRef self, const unichar_t *p_text, uin
374374
return;
375375
}
376376

377+
// Force skia to render text with antialiasing enabled.
378+
t_paint . setAntiAlias(true);
379+
377380
t_paint . setTextSize(p_font . size);
378381
t_paint . setTextEncoding(SkPaint::kGlyphID_TextEncoding);
379382

0 commit comments

Comments
 (0)