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>
(cherry picked from commit 6460c685c3bc3f4929263c7681080056b59948fe)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153654
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx
index 3ad89f1c..2c3521a 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,8 @@ 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