vcl/win/gdi/salfont.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 2ff6fce634ff173b9eb8a703b7f2f265f6e3ecb1 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Mon Mar 16 16:51:51 2020 +0100 Commit: Luboš Luňák <l.lu...@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.lu...@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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits