[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Mon May 24 09:01:49 UTC 2021
vcl/skia/win/gdiimpl.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1b97f8010bc3e7af1aadc19a29a621aa5a3bb986
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Fri May 7 21:53:13 2021 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Mon May 24 11:01:11 2021 +0200
disable AA in Skia/Windows text rendering if asked to
Change-Id: I8bff295277c623125d81de7804b43f91f680df4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115619
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/skia/win/gdiimpl.cxx b/vcl/skia/win/gdiimpl.cxx
index 24daf1fc8b7c..e245f488433a 100644
--- a/vcl/skia/win/gdiimpl.cxx
+++ b/vcl/skia/win/gdiimpl.cxx
@@ -235,7 +235,8 @@ bool WinSkiaSalGraphicsImpl::DrawTextLayout(const GenericSalLayout& rLayout)
if (fontHeight < 0)
fontHeight = -fontHeight;
SkFont font(typeface, fontHeight, pWinFont->getHScale(), 0);
- font.setEdging(fontEdging);
+ font.setEdging(logFont.lfQuality == NONANTIALIASED_QUALITY ? SkFont::Edging::kAlias
+ : fontEdging);
assert(dynamic_cast<SkiaSalGraphicsImpl*>(mWinParent.GetImpl()));
SkiaSalGraphicsImpl* impl = static_cast<SkiaSalGraphicsImpl*>(mWinParent.GetImpl());
COLORREF color = ::GetTextColor(mWinParent.getHDC());
More information about the Libreoffice-commits
mailing list