[Libreoffice-commits] core.git: vcl/win
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Wed Mar 18 09:48:29 UTC 2020
vcl/win/gdi/salfont.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 2ff6fce634ff173b9eb8a703b7f2f265f6e3ecb1
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Mon Mar 16 16:51:51 2020 +0100
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Wed Mar 18 10:48:04 2020 +0100
use DEFAULT_QUALITY for font rendering with Skia on Windows
I don't know why tdf#98380 explicitly forced ANTIALIASED_QUALITY,
for OpenGL, but with Skia this breaks subpixel AA on LCDs,
where the actual value should be CLEARTYPE_QUALITY. But
DEFAULT_QUALITY simply seems to do the job no matter what.
Maybe the problem with OpenGL was that our code there handles
glyphs as monochrome, but Skia can handle colors, which is
necessary for subpixel AA.
Change-Id: Id7081b120f8e754deb4793423d157a8837e959aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90581
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/win/gdi/salfont.cxx b/vcl/win/gdi/salfont.cxx
index 73c0bf7f2eb9..774178b683f8 100644
--- a/vcl/win/gdi/salfont.cxx
+++ b/vcl/win/gdi/salfont.cxx
@@ -796,9 +796,7 @@ void ImplGetLogFontFromFontSelect( HDC hDC,
static BYTE nDefaultQuality = NONANTIALIASED_QUALITY;
if (nDefaultQuality == NONANTIALIASED_QUALITY)
{
- if (SkiaHelper::isVCLSkiaEnabled())
- nDefaultQuality = ANTIALIASED_QUALITY;
- else if (OpenGLWrapper::isVCLOpenGLEnabled())
+ if (OpenGLWrapper::isVCLOpenGLEnabled())
nDefaultQuality = ANTIALIASED_QUALITY;
else
nDefaultQuality = DEFAULT_QUALITY;
More information about the Libreoffice-commits
mailing list