[Libreoffice-commits] core.git: vcl/skia
LuboÅ¡ LuÅák (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 21 13:35:04 UTC 2020
vcl/skia/x11/textrender.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 94129b3ed8c158bf61fa0e17ee12a21fb9bf07e6
Author: Luboš Luňák <l.lunak at collabora.com>
AuthorDate: Mon Sep 21 13:28:53 2020 +0200
Commit: Luboš Luňák <l.lunak at collabora.com>
CommitDate: Mon Sep 21 15:34:27 2020 +0200
set properly font X-scale for Skia+X11 (tdf#136891)
Change-Id: I715453f6729363e6bf803f8493d91bb260fb808a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103097
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak at collabora.com>
diff --git a/vcl/skia/x11/textrender.cxx b/vcl/skia/x11/textrender.cxx
index 13eff3012721..e8596641c052 100644
--- a/vcl/skia/x11/textrender.cxx
+++ b/vcl/skia/x11/textrender.cxx
@@ -49,6 +49,7 @@ void SkiaTextRender::DrawTextLayout(const GenericSalLayout& rLayout, const SalGr
sk_sp<SkTypeface> typeface
= SkFontMgr_createTypefaceFromFcPattern(fontManager, rFont.GetFontOptions()->GetPattern());
SkFont font(typeface, nHeight);
+ font.setScaleX(1.0 * nWidth / nHeight);
// TODO are these correct?
if (rFont.NeedsArtificialItalic())
font.setSkewX(-0x6000L / 0x10000L);
More information about the Libreoffice-commits
mailing list