vcl: render scaled fonts for LOK
problem:
In online calc when fonts are not scaled, text box disappears when not active
Change-Id: I9c8fdb3c0d14a3e7ed502ddb2b46c0769a855280
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153624
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 393c4c6..0fbeb69 100644
--- a/drawinglayer/source/processor2d/vclprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx
@@ -23,6 +23,7 @@
#include "vclhelperbufferdevice.hxx"
#include <cmath>
#include <comphelper/string.hxx>
#include <comphelper/lok.hxx>
#include <svtools/optionsdrawinglayer.hxx>
#include <tools/debug.hxx>
#include <tools/fract.hxx>
@@ -162,7 +163,7 @@ void VclProcessor2D::RenderTextSimpleOrDecoratedPortionPrimitive2D(
// tdf#153092 Ideally we don't have to scale the font and dxarray, but we might have
// to nevertheless if dealing with non integer sizes
const bool bScaleFont(aFontSize.getY() != std::round(aFontSize.getY()));
const bool bScaleFont(aFontSize.getY() != std::round(aFontSize.getY()) || comphelper::LibreOfficeKit::isActive());
vcl::Font aFont;
// Get the VCL font